Circumventing RW data compression

Hello,

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?

Parents
  • 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?

Reply
  • 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?

Children
More questions in this forum