[BusyBox] further ash size reduction

Manuel Novoa III mjn3 at busybox.net
Fri Aug 10 05:48:42 UTC 2001


vodz and Aaron,

I modified vodz's tokendlist patch and cut out another 64 bytes by combining
the parsekwd array with the tokname_array.  I also did a little more cleanup
for the SIT function approach.  It can now be turned on or off independently
from ASH_OPTIMIZE_FOR_SIZE.  Attached is a patch to be applied _after_
applying my previous patch to the current version of ash.c in CVS.

For what it is worth, with egcs-2.91.66 and the SIT function, I'm getting

size ash*.o
   text	   data	    bss	    dec	    hex	filename
  52976	     80	  10176	  63232	   f700	ashorig.o  - stock CVS version
  48304	     56	  10208	  58568	   e4c8	ash.o      - with this patch applied
  48496	     56	  10208	  58760	   e588	ashtbl.o   -   but no SIT function
  
I can trim another 64 bytes off the ashtbl version if I pack nibbles in
the syntax_index_table (unless something has changed).

Manuel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tokname.diff.gz
Type: application/octet-stream
Size: 2796 bytes
Desc: not available
Url : http://lists.busybox.net/pipermail/busybox/attachments/20010810/26793cd2/attachment.obj 


More information about the busybox mailing list