Mail Archives: djgpp/1997/02/18/10:17:57
eab AT salnet DOT org wrote:
>Do you think it would be possible to "configure" gcc as a cross-compiler
>for an 8-bit computer? I was thinking primarily of the Commodore 64.
>(I don't actually have a Commodore 64 anymore, but I have an emulator on
>my computer.) I know that in addition to that I would either have write
>an additional part for gas or write my own assembler, and I'd need to
>write a standard library for it.
>Ethan
>This message sent via TRI-RIVERS INTERNET, Inc. - Salina, KS. !
Ethan,
A MUCH better idea would be to port Small C. It is written for an 8
bit world, and has been ported to many other processors already. You
might even be able to find a version already ported to the 6502 (I
believe that this is tha processor inside your Comodor 64).
Small C puts out assembly language, and will compile itself. You get
the source code with it, and have lots of fun porting it. This would
be a MUCH easier project than trying to port DJGPP, or the GNU tools.
As for assemblers, I would be very supprised if you couldn't find
something on the internet that you could use.
- Raw text -