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: "Subrat Kr. Panda " <subrat at cse dot iitkgp dot ernet dot in>
- To: Stephane Brunet <stephane dot brunet at polymtl dot ca>
- Cc: binutils at sources dot redhat dot com
- Date: Tue, 20 Aug 2002 19:13:34 +0530 (IST)
- Subject: Re: A new target for binutils ? MCS-51
Hi Stephane,
Our team have just finished retargetting gcc, binutils for a risc
processor. well the order we chose was not very specific. But better if
you start with opcode, bfd, ld, gas. Well it all depends on you how you
want your things to work. Gas and ld both are dependent on bfd hence you
need to get bfd done first.
Regarding format we did it for COFF..using the MANY_SEGMENTS macro we
did not use the BFD_ASSEMBLER because COFF was not well tested with
BFD_ASSEMBLER defined. You could rather go for ELF. The version if
binutils package retargetted was binutils-2.12.
Thanks and regards,
subrat
On Tue, 20 Aug 2002, Stephane Brunet wrote:
> Hi!
>
> I am presently planning to port binutils (an then GCC) to the MCS-51
> target since many (old and recent) microcontrollers are using it.
>
> 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 ?
>
> 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...
>
> Regards,
>
> Stéphane Brunet
>
> 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!
>
>
--
Try your best and leave the rest.
(anonymous)
=============================================================================
Subrat Kumar Panda
Research Consultant,
Dept. of CSE, IIT Kharagpur