Date: Tue, 01 Sep 1998 10:19:18 -0700 From: John Polstra <jdp@polstra.com> To: abial@nask.pl Cc: current@FreeBSD.ORG Subject: Re: ELF binaries size Message-ID: <199809011719.KAA13874@austin.polstra.com> In-Reply-To: <Pine.BSF.4.02A.9809011239210.648-100000@korin.warman.org.pl> References: <Pine.BSF.4.02A.9809011239210.648-100000@korin.warman.org.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <Pine.BSF.4.02A.9809011239210.648-100000@korin.warman.org.pl>, Andrzej Bialecki <abial@nask.pl> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199809011719.KAA13874>