From owner-freebsd-current Sun Dec 21 15:52:07 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id PAA06980 for current-outgoing; Sun, 21 Dec 1997 15:52:07 -0800 (PST) (envelope-from owner-freebsd-current) Received: from frmug.org (frmug-gw.frmug.org [193.56.58.252]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id PAA06945 for ; Sun, 21 Dec 1997 15:51:56 -0800 (PST) (envelope-from roberto@keltia.freenix.fr) Received: (from uucp@localhost) by frmug.org (8.8.8/frmug-2.2/nospam) with UUCP id AAA05127 for current@FreeBSD.ORG; Mon, 22 Dec 1997 00:51:44 +0100 (CET) (envelope-from roberto@keltia.freenix.fr) Received: (from roberto@localhost) by keltia.freenix.fr (8.8.8/keltia-2.13/nospam) id AAA17426; Mon, 22 Dec 1997 00:16:19 +0100 (CET) (envelope-from roberto) Message-ID: <19971222001618.30696@keltia.freenix.fr> Date: Mon, 22 Dec 1997 00:16:18 +0100 From: Ollivier Robert To: current@FreeBSD.ORG Subject: Re: ELF binaries References: <19971221022254.38295@keltia.freenix.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.88 In-Reply-To: ; from Alex on Sun, Dec 21, 1997 at 10:12:45AM -0800 X-Operating-System: FreeBSD 3.0-CURRENT ctm#3883 AMD-K6 MMX @ 208 MHz Sender: owner-freebsd-current@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk According to Alex: > Neither were mine, however they claim a 30% improvment with their hacked > up gzip. I did notice that it at least makes smaller binaries. Talking about smaller binaries, I was very impressed by egcs... Here is mutt 0.88 compiled with Slang (a.out) 211 [14:56] roberto@keltia:/build/mutt-0.88-aout> ll mutt -rwxr-xr-x 1 roberto staff 282624 Dec 21 14:51 mutt* 212 [23:53] roberto@keltia:/build/mutt-0.88-aout> size mutt text data bss dec hex 266240 16384 11336 293960 47c48 The same mutt compiled with egcs/ELF/-mpentium 362 [23:54] roberto@keltia:/build/mutt-0.88> ll mutt -rwxr-xr-x 1 roberto staff 261888 Dec 21 14:51 mutt* 363 [23:54] roberto@keltia:/build/mutt-0.88> size mutt text data bss dec hex filename 207228 49742 13419 270389 42035 mutt Why the 60 KB difference ? I understand that many read-only strings in a.out end up inside .text where they're inside data in ELF but it seems a big difference... Next test, compiling gzip with egcs/ELF. [ hack Makefile, compile ] After some tests with -O3 (and -mpentium for egcs), the a.out/2.7.2.1 is sometimes faster than the ELF/egcs version... Go figure. -- Ollivier ROBERT -=- FreeBSD: The Power to Serve! -=- roberto@keltia.freenix.fr FreeBSD keltia.freenix.fr 3.0-CURRENT #19: Tue Dec 9 20:17:10 CET 1997