From owner-freebsd-current Wed Apr 7 10:45:37 1999 Delivered-To: freebsd-current@freebsd.org Received: from smtp01.wxs.nl (smtp01.wxs.nl [195.121.6.61]) by hub.freebsd.org (Postfix) with ESMTP id F0D2414BFF for ; Wed, 7 Apr 1999 10:45:29 -0700 (PDT) (envelope-from asmodai@wxs.nl) Received: from daemon.ninth-circle.org ([195.121.56.91]) by smtp01.wxs.nl (Netscape Messaging Server 3.61) with ESMTP id AAA3BC7; Wed, 7 Apr 1999 19:43:17 +0200 Received: from daemon.ninth-circle.org (abaddon@daemon [192.168.0.1]) by daemon.ninth-circle.org (8.9.3/8.9.3) with ESMTP id TAA55094; Wed, 7 Apr 1999 19:43:15 +0200 (CEST) (envelope-from asmodai@wxs.nl) Message-ID: X-Mailer: XFMail 1.3 [p0] on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <199904071720.KAA61868@vashon.polstra.com> Date: Wed, 07 Apr 1999 19:43:14 +0200 (CEST) Organization: Ninth Circle Enterprises From: Jeroen Ruigrok/Asmodai To: John Polstra Subject: Re: Some gcc/egcs comparisons Cc: current@freebsd.org Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 07-Apr-99 John Polstra wrote: > In article , > Jeroen Ruigrok/Asmodai 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 asmodai(at)wxs.nl The idea does not replace the work... Network/Security Specialist *BSD: Powered by Knowledge & Know-how To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message