Tool/software: TI C/C++ Compiler
Hello,
We are using (as recommended by TI) the gcc-arm-none-eabi-4_9-2015q3 linaro tools for building (compiling and linking) the ARM cortex A15 cores (on the TDA2xx).
We have some large global arrays defined in the code that are allocated to specific sections (attribute((section ...)), and these sections are defined as NOLOAD sections.
The resulted executable (ELF file) size is small corresponding to the fact that even though the arrays are very large, since the sections are noload section, they do not enter the image file.
The problem is that we noticed that the object files of the sources that have these array definitions are huge in size and it seems that the compiler fills the object files with zero corresponding to the arrays size which result in a very large file.
Even though this does not affect the final image (ELF file) it is still very problematic considering the sizes of these resulted object files.
So far i was not able to find a way to change this compiler behavior and i would appreciate your help for resolving this.
(B.T.W - with the TI compiler tools, which are used for example for the M4 cores, we don't have such a phenomenon with array defined the same way)
Thanks
Guy
Thanks
Guy