[PATCH] smallint

Denys Vlasenko vda.linux at googlemail.com
Mon May 19 15:18:58 PDT 2008


Hi,

Attached patch instroduces smallint type, and uses it
for flag variables. It results in size reduction
ont only for bss, but text too:

    text           data     bss     dec     hex filename
-    648              4      24     676     2a4 libc/misc/internals/__uClibc_main.o
+    645              4      21     670     29e libc/misc/internals/__uClibc_main.o
-    129              0       4     133      85 libc/termios/tcgetsid.o
+    126              0       1     127      7f libc/termios/tcgetsid.o

because "flag_var = 1" is a smaller instruction now.
Size in smallint can be set per-architecture.

I am a bit unsire I picked suitable include files to put
new definitions in.

Can someone eyeball the patch?
--
vda
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 2.patch
Type: text/x-diff
Size: 5765 bytes
Desc: not available
Url : http://busybox.net/lists/uclibc/attachments/20080520/62d9501c/attachment.patch 


More information about the uClibc mailing list