Tool/software: TI C/C++ Compiler
Hello,
I defined to different struct for CPU to CLA communication:
#pragma DATA_SECTION(stCpuToClaTask1, "CpuToCla1MsgRAM");
CpuToClaTask1 stCpuToClaTask1;
#pragma DATA_SECTION(stCpuToClaTask2, "CpuToCla1MsgRAM");
CpuToClaTask2 stCpuToClaTask2;
The size of stuct stCpuToClaTask1 is 30 (0x1E) words and the size of stCpuToClaTask2 is 64 (0x40) words.
If I look in .map file, I see that the linker reserves 64 words for first struct (stCpuToClaTask1) so I can not add more variables in second struct. (stCpuToClaTask2):
page address name
---- ------- ----
1 00001500 _stCpuToClaTask1
1 00001540 _stCpuToClaTask2
Why the linker reserves more memory as needed for the first struct and what can I do to avoid it?
Thank you in advance!
Gennadi