[PATCH] libbb print_flags() -380 bytes
Natanael Copa
natanael.copa at gmail.com
Fri Jun 6 04:39:15 PDT 2008
Hi,
I have looked more at the print_flags() I started with yesterday.
Attatched are some patches and they should probably be committed to svn
separatly (easier to revert in case they have bugs).
I tried to use print_flags() in arp.c and fdisk.c but they seemed to
increase the size so I chosed to not included them here. (ping me if
someone want to take a look at them anyway)
Patches are rebased from svn trunk this morning.
Bloatcheck on hardened uclibc gcc-3.4.6:
function old new delta
hdparm_main 1067 4916 +3849
print_flags - 135 +135
static.ultra_modes2 - 88 +88
static.dma_mword_modes - 72 +72
static.dma_1word_modes - 72 +72
static.ultra_modes1 - 56 +56
static.link_flags - 56 +56
static.pio_modes - 32 +32
static.dflags - 32 +32
.rodata 31784 31770 -14
xbsd_print_disklabel 927 892 -35
ipaddr_list_or_flush 2732 2455 -277
process_dev 4446 - -4446
------------------------------------------------------------------------------
(add/remove: 8/1 grow/shrink: 1/3 up/down: 4392/-4772) Total: -380
bytes
text data bss dec hex filename
135156 2173 4500 141829 22a05 busybox_old
134728 2677 4500 141905 22a51 busybox_unstripped
-nc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_flags-hdparm.patch
Type: text/x-patch
Size: 3819 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080606/8b6c8c30/attachment.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_flags-ip.patch
Type: text/x-patch
Size: 1248 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080606/8b6c8c30/attachment-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: print_flags-libbb.patch
Type: text/x-patch
Size: 1662 bytes
Desc: not available
Url : http://busybox.net/lists/busybox/attachments/20080606/8b6c8c30/attachment-0002.bin
More information about the busybox
mailing list