From owner-freebsd-current Tue Sep 1 10:20:54 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id KAA13895 for freebsd-current-outgoing; Tue, 1 Sep 1998 10:20:54 -0700 (PDT) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from austin.polstra.com (austin.polstra.com [206.213.73.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA13883 for ; Tue, 1 Sep 1998 10:20:49 -0700 (PDT) (envelope-from jdp@austin.polstra.com) Received: from austin.polstra.com (jdp@localhost) by austin.polstra.com (8.8.8/8.8.8) with ESMTP id KAA13874; Tue, 1 Sep 1998 10:19:18 -0700 (PDT) (envelope-from jdp) Message-Id: <199809011719.KAA13874@austin.polstra.com> To: abial@nask.pl Subject: Re: ELF binaries size In-Reply-To: References: Organization: Polstra & Co., Seattle, WA Cc: current@FreeBSD.ORG Date: Tue, 01 Sep 1998 10:19:18 -0700 From: John Polstra Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article , Andrzej Bialecki wrote: > On Tue, 1 Sep 1998, John Birrell wrote: > > > elf: > > > > total 8073 > > -r-xr-xr-x 1 bin bin 56244 Sep 1 14:50 adjkerntz > > > aout: > > > > total 16548 > > -r-xr-xr-x 1 bin bin 57344 Aug 30 16:51 adjkerntz > > Thanks! It looks as they are consistently smaller by some 0.2-2kB. That's > very good news! Yes. That's because a.out rounds the text and data segments up to page boundaries, but ELF does not. The load image of a shared ELF executable should be, on average, about 1 page (4K) smaller than the corresponding a.out image. Differences in other parts of the object files negate some of that savings. But still, you can rely on ELF executables being smaller than the a.out versions. -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Self-knowledge is always bad news." -- John Barth To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message