SPRU513Y August 2001 – June 2022 SM320F28335-EP
The C/C++ language uses two uninitialized sections called .esysmem 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 1K words and the default size of the stack is 1K words.
See Section 9.5.15 for setting heap sizes and Section 9.5.30 for setting stack sizes.