Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Dec 1997 00:16:18 +0100
From:      Ollivier Robert <roberto@keltia.freenix.fr>
To:        current@FreeBSD.ORG
Subject:   Re: ELF binaries
Message-ID:  <19971222001618.30696@keltia.freenix.fr>
In-Reply-To: <Pine.BSF.3.96.971221100706.25163B-100000@zippy.dyn.ml.org>; from Alex on Sun, Dec 21, 1997 at 10:12:45AM -0800
References:  <19971221022254.38295@keltia.freenix.fr> <Pine.BSF.3.96.971221100706.25163B-100000@zippy.dyn.ml.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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



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