reduce the size of busybox

Rob Landley rob at landley.net
Thu Jun 15 12:28:44 PDT 2006


On Thursday 15 June 2006 2:50 pm, Bernhard Fischer wrote:
> On Thu, Jun 15, 2006 at 12:25:53PM -0400, Rob Landley wrote:
> >On Tuesday 13 June 2006 11:44 am, Bernhard Fischer wrote:
> >> I guess it's of no real use to tweak these (for i386), since they don't
> >> do any dramatical improvements, agree?
> >>
> >>    text    data     bss     dec     hex filename
> >>  846379    9104  645632 1501115  16e7bb busybux.single_4.auto_3
> >>  846395    9104  645632 1501131  16e7cb busybux.single_1.auto_3
> >> [snip rest of sequence, the default gives:]
> >>  846747    9104  645632 1501483  16e92b busybux.single_5.auto_5
> >
> >What platform are you getting a 1.5 megabyte decimal size for?
>
> i386-linux-gnu and defconfig. How does yours look like?

ls -l busybox_unstripped
-rwxr-xr-x  1 landley landley 1075109 2006-06-15 15:24 busybox_unstripped
ls -l busybox
-rwxr-xr-x  1 landley landley 893112 2006-06-15 15:24 busybox

That's defconfig, built with gcc 4.0.3, _without_ build-at-once mode.

But when I do "size busybox" I also get 1.5 megabytes, which I'm guessing is 
mostly prezeroed bss data?  In which case the union of global structures 
should really help here...  In 1.3. :)

Rob
-- 
Never bet against the cheap plastic solution.


More information about the busybox mailing list