This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Building gcc as a cross compiler
- To: 'Christophe Rippert' <Christophe dot Rippert at imag dot fr>, gcc-help at gcc dot gnu dot org
- Subject: RE: Building gcc as a cross compiler
- From: David Korn <dkorn at pixelpower dot com>
- Date: Wed, 21 Mar 2001 18:16:02 -0000
>-----Original Message-----
>From: Christophe Rippert [mailto:Christophe.Rippert@imag.fr]
>Sent: 21 March 2001 17:54
>In fact I'm trying to build a compiler that I will use to build a new
>operating system, so it should not generate Linux code (that's
>why I choose
>the coff format I believe it is a generic format). As a
>standard library,
>I'd like to build glibc (or newlib if it is better suited ?),
>also for a ARM
>platform.
All the formats are fairly generic, thanks to the portability of
binutils; I'm not expert in making that sort of choice, but IIUIC arm-elf
might be better as it's a more modern format and has the best support
for things like debugging info (particularly in C++), weak symbols and
dynamic linking. However I am not an object-file-format expert, so you
should probably look for better advice than mine on the subject.
As to which library you want, glibc is more suited to a desktop PC;
newlib is good for embedded systems in which resources are constrained.
For the same reason, porting glibc to a new system is probably a bit
more work than newlib, but it's really the way to go.
And you should rebuild your compiler using the glibc headers!
good luck,
DaveK
--
All your base are belong to us!
**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.
This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.
www.mimesweeper.com
**********************************************************************