This is the mail archive of the ecos-patches@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Saving 4k idle ram usage for zlib


> Øyvind, please do feel free to submit a patch to do this. I doubt there 
> would be any problem accepting it.

Attached.



-- 

Øyvind Harboe
http://www.zylin.com


Index: ChangeLog
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/compress/zlib/current/ChangeLog,v
retrieving revision 1.9
diff -a -u -w -r1.9 ChangeLog
--- ChangeLog	20 Nov 2003 09:28:06 -0000	1.9
+++ ChangeLog	29 Apr 2004 06:49:47 -0000
@@ -1,3 +1,7 @@
+2004-04-29  Oyvind Harboe <oyvind.harboe@zylin.com>
+	* src/inffixed.h: added "const" to tables that do not 
+	change in order to save RAM. Ca. 4k.
+
 2003-11-20  Andrew Lunn  <andrew.lunn@ascom.ch>
 
 	* tests/zlib[12].c: Modified the text to the gcc3.3 friendly.
Index: src/inffixed.h
===================================================================
RCS file: /cvs/ecos/ecos/packages/services/compress/zlib/current/src/inffixed.h,v
retrieving revision 1.1
diff -a -u -w -r1.1 inffixed.h
--- src/inffixed.h	6 Apr 2001 17:20:41 -0000	1.1
+++ src/inffixed.h	29 Apr 2004 06:49:48 -0000
@@ -9,7 +9,7 @@
 
 local uInt fixed_bl = 9;
 local uInt fixed_bd = 5;
-local inflate_huft fixed_tl[] = {
+local const inflate_huft const fixed_tl [] = {
     {{{96,7}},256}, {{{0,8}},80}, {{{0,8}},16}, {{{84,8}},115},
     {{{82,7}},31}, {{{0,8}},112}, {{{0,8}},48}, {{{0,9}},192},
     {{{80,7}},10}, {{{0,8}},96}, {{{0,8}},32}, {{{0,9}},160},
@@ -139,7 +139,7 @@
     {{{82,7}},27}, {{{0,8}},111}, {{{0,8}},47}, {{{0,9}},191},
     {{{0,8}},15}, {{{0,8}},143}, {{{0,8}},79}, {{{0,9}},255}
   };
-local inflate_huft fixed_td[] = {
+local const inflate_huft fixed_td[] = {
     {{{80,5}},1}, {{{87,5}},257}, {{{83,5}},17}, {{{91,5}},4097},
     {{{81,5}},5}, {{{89,5}},1025}, {{{85,5}},65}, {{{93,5}},16385},
     {{{80,5}},3}, {{{88,5}},513}, {{{84,5}},33}, {{{92,5}},8193},

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]