[BusyBox] Re: Large build size with uCLibc?
Rob Fowler
rfo at keta.mine.nu
Thu Feb 14 21:50:06 UTC 2002
On Thu, 14 Feb 2002 21:01:41 -0700
Ryan Lindeman <lindemanr at rubberstampfactory.com> wrote:
> Then I compiled it with uClibc (PATH=/usr/i386-...uclibc/bin:$PATH) and
> ended up with a filesize of 183k.
>
> Should I see a significant difference? or is this normal. Idealy I
> would like it smaller if possible.
The difference is not actually in the executables but in the shared
libraries needed to run the executable.
To run the program compiled with gcc and linked to glibc
you will megs of shared libraries (2.5 meg or for a small set).
To have the same thing run with uClibc you will need hundreds of K of
shared libaries (260k or so).
Try and get the busybox executable run outside the system you built it
in and you will see what I mean.
> One other question: If I compile busybox with no networking options:
> (ifconfig, ping, etc) and one with the standard options (ls, mv, etc)
> will the two executables be smaller than if I had them all in one busybox?
>
Nope, that's why busybox has common things. Consider the static startup
code and argument handling, these would be dulpicated if there were two
executables. The smallest is all in one executable. YMMV, but not likely.
--
Rob Fowler rfo at mianos.com
More information about the busybox
mailing list