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

Denis Vlasenko vda at ilport.com.ua
Thu Mar 2 22:28:20 PST 2006


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.

Also available at http://195.66.192.167/linux/bbox/align1.patch
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: align1.patch
Type: text/x-diff
Size: 1054 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20060303/e540ee2a/align1.bin


More information about the busybox mailing list