This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: A new target for binutils ? MCS-51
- From: Nick Clifton <nickc at redhat dot com>
- To: Stephane Brunet <stephane dot brunet at polymtl dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: 20 Aug 2002 14:34:26 +0100
- Subject: Re: A new target for binutils ? MCS-51
- References: <3D624199.3080809@polymtl.ca>
Hi Stephane,
> I have found old messages describing how to port binutils but I want
> to be sure that the information is up to date. Should I follow this
> order : BFD -> opcode -> gas -> ld ?
Yes, although I would add creating the header files first, ie:
include -> bfd -> opcodes -> gas -> ld
> Which object format should I choose ? COFF or ELF ? I tend to use
> ELF because the AVR port use it, but I have no other good reasons...
Use ELF. It is the most modern and flexible of the supported file
formats.
> P.S. : I was very surprised when I first read the source code : this
> is the first time that I see a complete K&R-written C project!
> Perhaps am I too young!
Well switching to ISO-C is actually being debated at the moment, but
the reason for coding the project in K&R is so that it can be built on
systems which only have a native K&R compiler.
Cheers
Nick