Date: Wed, 07 Apr 1999 19:43:14 +0200 (CEST) From: Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> To: John Polstra <jdp@polstra.com> Cc: current@freebsd.org Subject: Re: Some gcc/egcs comparisons Message-ID: <XFMail.990407194314.asmodai@wxs.nl> In-Reply-To: <199904071720.KAA61868@vashon.polstra.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On 07-Apr-99 John Polstra wrote: > In article <XFMail.990407190505.asmodai@wxs.nl>, > Jeroen Ruigrok/Asmodai <asmodai@wxs.nl> wrote: >> gcc compilation with -pipe -O2: >> >> 96 -rwxr-xr-x 1 root wheel - 97379 Mar 14 10:32 coolbrowse* >> 1064 -rwxr-xr-x 1 root wheel - 1076216 Mar 14 10:32 >> coolbrowse.static* > ... > > File sizes don't mean much. It would be more interesting to compare > the outputs of size(1). As thou wishes: gcc with -pipe -O2: [asmodai@daemon] (47) $ ll xfmail 760 -r-xr-xr-x 1 bin bin - 767720 Jan 1 16:08 xfmail* [asmodai@daemon] (49) $ size xfmail text data bss dec hex filename 711165 53244 149924 914333 df39d xfmail [asmodai@daemon] (52) $ ll libxforms.so.0 512 -rw-r--r-- 1 root wheel - 513411 Jan 1 16:00 libxforms.so.0 [asmodai@daemon] (53) $ size libxforms.so.0 text data bss dec hex filename 412781 29556 53092 495429 78f45 libxforms.so.0 Now for egcs with -pipe -Os: [asmodai@daemon] (30) # ll xfmail 808 -r-xr-xr-x 1 bin bin - 811812 Apr 7 19:39 xfmail* [asmodai@daemon] (31) # size xfmail text data bss dec hex filename 753039 53616 150596 957251 e9b43 xfmail [asmodai@daemon] (16) # ll libxforms.so.0 512 -rw-r--r-- 1 root wheel - 513411 Apr 7 19:31 libxforms.so.0 [root@daemon] (18) # size libxforms.so.0 text data bss dec hex filename 412781 29556 53092 495429 78f45 libxforms.so.0 --- Jeroen Ruigrok van der Werven <http://www.freebsdzine.org> asmodai(at)wxs.nl The idea does not replace the work... Network/Security Specialist <http://home.wxs.nl/~asmodai> *BSD: Powered by Knowledge & Know-how <http://www.freebsd.org> To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990407194314.asmodai>