Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Jun 2008 22:18:16 +0200 (CEST)
From:      Wojciech Puchar <wojtek@wojtek.tensor.gdynia.pl>
To:        Unga <unga888@yahoo.com>
Cc:        Kris Kennaway <kris@FreeBSD.org>, freebsd-questions@FreeBSD.org
Subject:   Re: What consists FreeBSD Libc?
Message-ID:  <20080608221622.R9955@wojtek.tensor.gdynia.pl>
In-Reply-To: <520110.33662.qm@web57009.mail.re3.yahoo.com>
References:  <520110.33662.qm@web57009.mail.re3.yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> Its great to get it confirmed that FreeBSD Libc is only /usr/src/lib/libc/* as I presumed.
>
> I have compiled and installed the FreeBSD Libc into a temp directory. The size of /tmp/libc.so.7 is about 65,000 bytes smaller than /lib/libc.so.7.
>
> The /lib/libc.so.7 is dated May 25, 2008. I did not touch CFLAGS or anything other than DESTDIR. But I really forgot, the gcc version is different. The /lib/libc.so.7 is by gcc 4.2.1, but the /tmp/libc.so.7 is by gcc 4.3.0. May be the code generation of the latest gcc may be better.

indeed it is better. while difference between gcc 3.* and 4.* is HUGE in 
respect of code size. after i upgraded to FreeBSD 7 from 6.3 (so gcc got 
upgraded to 4.*) i recompiled bash. same version, >20% smaller!

finally gcc turned to rule "small code=fast code", always true on 
processors with at least 1 level of cache, not mentioning 2 or 3 cache 
levels :)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080608221622.R9955>