how to target the Intel 8051?

Andrew Haley aph@redhat.com
Mon Mar 5 16:13:00 GMT 2007


Danny Birdie writes:
 > Hi,
 >   I have some C code targeted for the Intel 8051. How do I go about
 > using GCC to target the 8051, so I can generate an assembly output, or
 > an Intel Hex output.
 > 
 >   Please send me all the necessary instructions/links for this.

The 8051 wouldn't be a good target for gcc.  It's severely register
starved, and the result would be very poor code density.

Andrew.



More information about the Gcc-help mailing list