Cheap 65c816 compiler

Programming the 6502 microprocessor and its relatives in assembly and other languages.
Post Reply
Bor_Ed
Posts: 16
Joined: 10 Sep 2003
Location: Finland

Cheap 65c816 compiler

Post by Bor_Ed »

I've tried to get LCC to work on barebones 65265 mcu but the task is next to impossible, thanks to wings deps.
However, on random surfing I found http://store.syndicomm.com/index.php?ma ... ucts_id=62 which will run on http://kegs.sf.net apple IIgs emulator with apple abandonware license system 6 and allows own libs, is full ide etc.
Is the usd 40 too much to pay for such nice piece of software?
User avatar
dclxvi
Posts: 362
Joined: 11 Mar 2004

Post by dclxvi »

You could search ebay or something to see if someone is selling a cheaper copy, but beyond that, it comes down to whether $40 is worth it to you. If you need a C compiler and don't want (or have the time) to add support for the 65816 to LCC or GCC, then ORCA/C may be the simplest way to get from point A to point B. There probably won't be any support for it, but it's a mature product (and was, I believe, relatively popular for a C compiler), so there shouldn't be too much in the way of bugs. It doesn't appear that source code is provided, so you may want to consider whether you'll want/need to modify the compiler itself.

I never used the ORCA products, but they provided a UNIX-like environment for the Apple IIgs, and were oriented around using the Apple IIgs toolbox routines (as such, it uses that style of parameter passing). There weren't many C compilers available for any of the Apple II models, so I don't know how well (if at all) it optimizes code, if that's important to you. ORCA/M is the corresponding macro assembler, and I there may have been an ORCA/Pascal product as well -- I don't remember for sure.

That's my $0.02.
Nightmaretony
In Memoriam
Posts: 618
Joined: 27 Jun 2003
Location: Meadowbrook
Contact:

Post by Nightmaretony »

got orca C around somewhewre, enever did use it though. Thanks on the KEGS linking, it shows a game I did music for, Wolf 3D. Ah, memories :)
"My biggest dream in life? Building black plywood Habitrails"
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Re: Cheap 65c816 compiler

Post by BigEd »

Bor_Ed wrote:
I've tried to get LCC to work on barebones 65265 mcu
Did you have a look at Toshi Morita's LCC port? It's on this site under Tools/Compilers. It seems that it isn't quite complete* but might be a good starting point?

Ed

* see viewtopic.php?p=5017&highlight=#5017
TMorita
Posts: 217
Joined: 15 Sep 2002

Re: Cheap 65c816 compiler

Post by TMorita »

BigEd wrote:
Bor_Ed wrote:
I've tried to get LCC to work on barebones 65265 mcu
Did you have a look at Toshi Morita's LCC port? It's on this site under Tools/Compilers. It seems that it isn't quite complete* but might be a good starting point?

Ed

* see viewtopic.php?p=5017&highlight=#5017
It outputs a file that uses some ORCA/M macros, and I forgot to include the ORCA/M macros in that package.

I'll try to resurrect my Apple //gs to see if I can find the disk with the macros on them. It may take a while, as I haven't used the //gs in a while, and I'm not sure if I still have a valid GS/OS boot disk around.

Toshi
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

Post by BigEd »

That would be great!

Cheers
Ed
User avatar
BigEd
Posts: 11463
Joined: 11 Dec 2008
Location: England
Contact:

A new 65816 c compiler

Post by BigEd »

Very interesting development: Ulrich Hecht has added a 65816 backend to Fabrice Bellard's Tiny CC, and modified the WLA macro-assembler to suit.

It's for SNES but I hope it isn't too difficult to tweak it for other 65816 systems (in my case, emulated systems)

http://code.google.com/p/snes-sdk/

"SNES-SDK is a C toolchain and libraries targeting 65816 systems, specifically the Super NES (aka Super Nintendo, Super Famicom). It consists of a version of TCC equipped with a 65816 code generator and modified versions of WLA-DX (assembler and linker) and SNES9x (emulator for running the test suite). It is extremely hacky and very unpolished, but it passes a substantial part of the GCC test suite and even has floating-point support."
Bor_Ed
Posts: 16
Joined: 10 Sep 2003
Location: Finland

Post by Bor_Ed »

Been a while as I've had time for belowed hobby...
I purchased the Orca/C setup and installed it to kegs hard drive image.
I'm currently trying to get a grip again on C language itself as well as how Orca works in general to be able to get standard library built for '265 target.
Can't say I'm that much of a hardware or even low level software person so I try to go from where the fence is lowest or has hole it in the designs :D
Post Reply