Symbols Automatically Defined by the Linker

The linker automatically defines the following symbols for C/C++ support when the --ram_model or --rom_model option is used.

__TI_STACK_SIZE is assigned the size of the .stack section.
__TI_STACK_END is assigned the end of the .stack section.
__TI_SYSMEM_SIZE is assigned the size of the .sysmem section.

These linker-defined symbols can be accessed in any assembly language module if they are declared with a .global directive (see Identify Global Symbols).

See Section 8.6.1 for information about referring to linker symbols in C/C++ code.