[uClibc]gcc 2.9.5 or 3.2 , which compiler to use ??

Erik Andersen andersen at codepoet.org
Sun Nov 3 13:43:56 UTC 2002


On Sun Nov 03, 2002 at 05:14:24AM +0100, Arne Bernin wrote:
> Hi there,
> 
> i am just wondering if there are any real advantages or disadantages
> using either gcc3.2 or gcc2.9.5 for compiling uClibc and applications
> for it. What i am trying to do is to build a buildsystem like buildroot

Some people feel more comfortable with older compilers they have
used and tested extensively for their applications.  If one or
the other works better for someone, they are encouraged to use
that one.  :)

> for compiling a small router distribution, that will run only on i386
> for now. I noticed that buildroot uses gcc3.2 and that the size of the
> binaries is a bit different from the ones compiled with 2.9.5 (most
> binaries are a bit smaller, but the resulting gzipped tar is a bit
> larger...). Well that are the differences I found so far ;-)

Generally speaking, there shouldn't be any major differences....

> Are the binaries compiled with either of these versions compatible with
> the other ones , is it possible for example to use the uClibc conpiled
> with 2.9.5 with binaries compiled with gcc3.2 (which use the same uClibc
> versions of course) ? 
> 
> Any Information helping me to see a bit clearer is welcomed

Yes, one should be able to mix and match C binaries and object
files.  Don't try to mix C++ from the different compiler versions
however, as it won't work.

 -Erik

--
Erik B. Andersen             http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--



More information about the uClibc mailing list