[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    decompress BSS size
From:       "Vladimir N. Oleynik" <dzo () simtreas ! ru>
Date:       2006-04-27 9:02:29
Message-ID: 445088A5.9010003 () simtreas ! ru
[Download RAW message or body]

Hi all.

Busybox archival/libunarchive/decompress_uncompress.c have very big BSS.
But this big size (739k) need for compress only and do not realized in busybox!

See the remarks from mainstream compress sourse:

/*
  * To save much memory, we overlay the table used by compress() with those
  * used by decompress().  The tab_prefix table is the same size and type
  * as the codetab.  The tab_suffix table needs 2**BITS characters.  We
  * get this from the beginning of htab.  The output stack uses the rest
  * of htab, and contains characters.  There is plenty of room for any
  * possible stack (stack used to be 8000 characters).
  */

Result:
After change

-static long int htab[HSIZE];
+static /* long int */ unsigned char htab[HSIZE]; /* long for compress only */

BSS size reduced to 401k.

Many many tested. Its works.


--w
vodz
_______________________________________________
busybox mailing list
busybox@busybox.net
http://busybox.net/cgi-bin/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic