From: timolmst AT cyberramp DOT net Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc as a cross-compiler Date: Tue, 18 Feb 1997 14:12:59 GMT Organization: CyberRamp.net, Dallas, TX (214) 340-2020/(817) 226-2020 for info Lines: 27 Message-ID: <5ecckh$fb9$3@newshost.cyberramp.net> References: NNTP-Posting-Host: pm1-5.cyberramp.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp 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.