[PATCH] do not align code. saves ~3k

Rob Landley rob at landley.net
Fri Mar 3 17:58:56 UTC 2006


On Friday 03 March 2006 1:28 am, Denis Vlasenko wrote:
> Hi,
>
> This patch replaces -falign-functions=0 etc (which is IIRC useless - means
> "use default alignment") with -falign-functions=1 etc.
>
> # size busybox.org.tst/busybox busybox.align1.tst/busybox
>   text    data     bss     dec     hex filename
>  915759   10616 1045572 1971947  1e16eb busybox.org.tst/busybox
>  912299   10616 1045572 1968487  1e0967 busybox.align1.tst/busybox
>
> "make sizes" is identical, but "nm busybox" shows that
> symbols in busybox.org are aligned to 4 bytes,
> while symbols in busybox.align1 are not.

Cool.  Applied.

Rob
-- 
Never bet against the cheap plastic solution.



More information about the busybox mailing list