This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Compile GCC without a library
- From: Phil Edwards <phil at jaj dot com>
- To: Anders ?dland <aaadland at atmel dot no>
- Cc: gcc at gcc dot gnu dot org
- Date: Wed, 27 Aug 2003 16:16:35 -0400
- Subject: Re: Compile GCC without a library
- References: <oprukhfzoe4anuxc@store>
On Wed, Aug 27, 2003 at 04:05:49PM +0200, Anders ?dland wrote:
> When I'm compiling my new port with --enable-languages="c", it compiles
> with no errors. When configuring with --enable-language="c,c++" it fails
> when compiling libiberty because it can't find sys/types.h. I don't have a
> library for this architecture yet. Do I have to start porting a library
> befor I can continue with porting GCC?
("A library" doesn't communicate much. You should probably refer to
"a C library" or "a system library", because that's what's missing.)
And yes, C++ depends on an underlying C library. Two open source C
libraries with gobs of features are glibc and newlib. There are other
minimal ones avilable.
--
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it.
- Brian W. Kernighan