Allocating Stacks and Heaps for DSP56800E

Stationery linker command files (LCF) define heap, stack, and bss locations. LCFs are specific to each target board. When you use M56800E stationery to create a new project, CodeWarrior automatically adds the LCF to the new project.

See ELF Linker for general LCF information. See each specific target LCF in Stationery for specific LCF information.

See the following table for the variables defined in each Stationery LCF.

Table 1. LCF Variables and Address
Variables Address
_stack_addr Start address of the stack
_heap_size Size of the heap
_heap_addr Start address of the heap
_heap_end End address of the heap
_bss_start Start address of memory reserved for uninitialized variables
_bss_end End address of bss

To change the locations of these default values, modify the linker command file in your DSP56800E project.

Note: Ensure that the stack and heap memories reside in data memory.