Mail Archives: djgpp/1995/02/04/18:28:12
>Can someone give me the big picture of what it takes to write a C
>compiler for another processor other than the pc flavor? I am
>currently writing code for a microcontroller in assembler, and I
>think that it would be neat to make a gcc for this 14 bit chip.
>This would be a cross-compiler that runs on a pc to generate the
>14 bit object code.
The big picture is that flat memory model is embedded everywhere in
the GCC suite. If it's not flat memory (ie segment registers etc)
you're going to have big trouble.
I'm also afraid that 32-bit-ness is presumed throughout. Ie, there is
not going to be a retargeting of the GCC compiler to build DOS
small-model programs, and probably not your processor either. :-(
This I don't know for sure (eg, there is GCC for Cray and Alpha
machines), but that's the first big hangup to worry about.
- Raw text -