From owner-freebsd-questions@FreeBSD.ORG Sun Jun 8 20:18:48 2008 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 07F7B106564A; Sun, 8 Jun 2008 20:18:48 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [IPv6:2001:4070:101:2::1]) by mx1.freebsd.org (Postfix) with ESMTP id 3CF148FC19; Sun, 8 Jun 2008 20:18:41 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (localhost [IPv6:::1]) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2) with ESMTP id m58KIO9U010016; Sun, 8 Jun 2008 22:18:24 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.2/8.14.2/Submit) with ESMTP id m58KIGKA010009; Sun, 8 Jun 2008 22:18:24 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Sun, 8 Jun 2008 22:18:16 +0200 (CEST) From: Wojciech Puchar To: Unga In-Reply-To: <520110.33662.qm@web57009.mail.re3.yahoo.com> Message-ID: <20080608221622.R9955@wojtek.tensor.gdynia.pl> References: <520110.33662.qm@web57009.mail.re3.yahoo.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Kris Kennaway , freebsd-questions@FreeBSD.org Subject: Re: What consists FreeBSD Libc? X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 08 Jun 2008 20:18:48 -0000 > 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 :)