I have an array with global linkage that is 4[MB] in size. My
image grows by about 64[KB] thanks to R/W compression, which is
undesirable - the array does not contain any meaningful data anyway
immediately after startup. The linker already chooses the optimal
compression algorithm and it cannot be altered beyond the three that
ARM makes available. I cannot use "malloc" during startup because we
are talking about a LPC1788 with a FreeRTOS+MPU.
Any thoughts?
Read-Only
Author Tamir Michael
Posted 6-Jul-2012 09:26 GMT
Toolset ARM
RE: Circumventing RW data compression
Tamir Michael
I am going to try a zero init execution region - this should
prevent the RW data compression.
Read-Only
Author IB Shy
Posted 6-Jul-2012 09:28 GMT
Toolset ARM
RE: Circumventing RW data compression
IB Shy
"I am going to try a zero init execution region"
That one has worked well for me in the past.
DJR
Read-Only
Author Tamir Michael
Posted 6-Jul-2012 09:38 GMT
Toolset ARM
RE: Circumventing RW data compression
Tamir Michael
Thanks. It worked.
Read-Only
Author Mike Kleshov
Posted 6-Jul-2012 09:38 GMT
Toolset ARM
RE: Circumventing RW data compression
Mike Kleshov
My image grows by about 64[KB] thanks to R/W compression, which
is undesirable - the array does not contain any meaningful data
anyway immediately after startup.
That's odd. Why would the image grow when the array is not
initialized? It should be zero-initialized according to C rules,
should it not?
This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.
ARM websites use two types of cookie: (1) those that enable the site to function and perform as required; and (2) analytical cookies which anonymously track visitors only while using the site. If you are not happy with this use of these cookies please review our Privacy Policy to learn how they can be disabled. By disabling cookies some features of the site will not work.