[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Some ways to save space on the floppies



On Thu, 13 Nov 2003 15:13:44 +1100
Glenn McGrath <bug1@optushome.com.au> wrote:

> pipe-progress is the only non-busybox binary in bootfloppy-initrd,
> pipe-progress is very simple and could easily assimilated by busybox.
> 
> Having only one binary in the first initrd would open the possibility
> of compiling it statically, this would eliminate the requirment for
> ld-linux.so.2 which is 89kB on i386.
> 
> I think static binaries may be marginally smaller than a binary +
> dynamic library (after library reduction) due to some library
> overheads, it is a very marginal savings though i think.

Comparing static glibc busybox against shared library reduced glibc.

busybox.static	578456	(277656 compressed with gzip)

busybox.shared	94668	(56116)
ld-linux.so.2	90144	(46709)
libc.so.6	542664	(240184)

Total Shared	727476	(343009)
Total Static	578456	(277656)

Uncompressed saving	149 kB
Compressed saving	 65 kB


Comparing static uClibc busybox against shared library reduced glibc.

busybox-static-uclibc	144276	(80525)

Total Shared (glibc)	727476	(343009)
Total Static (uclibc)	144276	(80525)

Uncompressed saving	583 kB
Compressed saving	262 kB

Moving to uclibc and a static binary will make a lot of difference,
certainly give us a lot more flexibility in kernel features.

uClibc can be a shared library, but i didnt consider that in this
comparison.


Glenn



Reply to: