SPRU513Z August 2001 – October 2023 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 8.4.15 for setting heap sizes and Section 8.4.30 for setting stack sizes.