[PATCH] static const ints are evil
Denis Vlasenko
vda at ilport.com.ua
Thu Mar 9 06:16:33 UTC 2006
Why? Because the are emitted into rodata segment, thats why!
Below patch converts most of them into enum constants.
End result:
# size busybox.org busybox.const
text data bss dec hex filename
790676 10820 1028484 1829980 1bec5c busybox.org
789580 10820 1028484 1828884 1be814 busybox.const
Patch is bzipped in order to fit into 40kb mailing list limit.
Also available at http://195.66.192.167/linux/bbox/const.patch
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: const.patch.bz2
Type: application/x-bzip2
Size: 9576 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20060309/40ed11de/attachment.bin
More information about the busybox
mailing list