[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: off topic: C compiler for 8051 ( gcc ? )
Erez Doron wrote:
> Hi
> I was looking for a free C compiler for 8051. I wandered if there was
> maybe a gcc for 8051. I went through ftp://prep.ai.mit.edu/pub/gnu,
> there were a lot of gcc versions, but it didn't say which platform it
> is for. I would apreciate any help
gcc is a generic C compiler (although the 'g' stands for Gnu, not
generic,) and uses a target machine definition to generate the code.
Richard Stallman's book on GCC discusses how to develop the definition
for a particular target machine. I don't have the book handy (it's at
home) so I can't say for certain, but I see no mention of any 8051
options in the man page for 2.7 here at work.
Writing a target definition would be a fair chunk of work, and you would
have to fit it into an 8051 assembler, or build one of those, too. I
don't recommend it unless you have LOTS of spare time.
There may well be some free software - go to the Intel site and post on
the developers' news group. People there are pretty helpful, and Intel
support personnel also step in to lend a hand. If you have NO budget,
tell them that you're a student, and they might just send you an MCS-51
Developer's Kit. (I hope you can arrange with a university student to
ship it there.)
Commercial C -> 8051 cross-compilers for MS-DOG are available in the
$50-$150 range. Email me off-the group, or call me at 050-628-925, for
details. (Efshar gam b'ivrit :-)
> Regards
> Erez.
Good luck -
Eliyahu