This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
This is a C2000 project. I have specified both a stack and heap section in the C2000 Linker/Basic Options. I see on the Linker command line, --heap_size=0x200 --stack_size=0x200, which is accurate. However in the .map file I do not see any reference to a Heap (ie .esysmem).
If I add a call to malloc() in my code a .esysmem suddenly does appear in the .map file, with a size of 0x200 as requested.
I'm not using malloc() but I am using sprintf() so I do want a Heap.
Why is a .esysmem not showing up in the .map file in this case?
Maybe it's part of the .ebss section?
Seems odd that it doesn't generate a .esysmem section in this case...
Thank you.
mark foley said:Why is a .esysmem not showing up in the .map file in this case?
The function sprintf does not call malloc (or any similar function). And when there are no calls to malloc, the .esysmem section is not part of the build.
Thanks and regards
-George