SLAU131V October 2004 – February 2020
The C/C++ language uses two uninitialized sections called .sysmem and .stack for the memory pool used by the malloc( ) functions and the run-time stacks, respectively. You can set the size of these by using the --heap_size or --stack_size option and specifying the size of the section as a 4-byte constant immediately after the option. If the options are not used, the default size of the heap is 128 bytes and the default size of the stack is 128 bytes.
See Section 8.4.13 for setting heap sizes andSection 8.4.28 for setting stack sizes.