The meaning of each section of the TMS320F2812 CMD file[Copy link]
.text section //Code section usually contains executable code .cinit section // Global and static variable storage addresses of C language code C initialization records for explicitly initialized global and static variables .pinit section // C++ language code global and static variable storage address [color =#000000] size=4].stack section // The C language stack segment is an uninitialized section used for the C system [/size ] stack. [backcolor= white].bss section //Reserve variable space for uninitialized temporary variables. It can be assembly or C [backcolor= white] [color= #000000] At program startup time, the C boot routine copies data out of the .cinit section (which can be in ROM) and stores it in the .bss section. /color] [backcolor=white ] [color=# 000000] .ebss section //Reserve variable space for uninitialized temporary variables Just for C [/ color] //At program startup time, the C boot routine copies data out of the .cinit section (which can be in ROM) and stores it in the .ebss section. [/size ] .const section // Global invariant section such as strings or constants is an initialized section that contains string constants,and the declaration and initialization of global and static variables(qualified by const) that are explicitly initialized.
.econst section //(增强型 大空间恒量操作) is an initialized section that contains string constants,and the declaration and initialization of global and static variables(qualified by far const or the use of the large memory model) that
are explicitly initialized and placed in far memory.
.sysmem section //保留空间为动态内存分配使用 ,专为内存分配函数准备,如果程序中没有用到内存函数,则此段内容为 0is a uninitialized section that reserves space for dynamic memory allocation. The reserved space is used by malloc functions. If no malloc functions are used, the size of the sectionremains 0.
.esysmem section //(增强型 大空间内存操作)保留空间为动态内存分配使用,专为内存分配函数准备,如果程序中没有用到内存函数,则此段内容为 0 is a uninitialized section that reserves space for dynamic memory allocation. The reserved space is used by far malloc functions. If no far malloc functions are used, the size of the section remains 0.
.switch section //switch 语句存放的表格段,如果用SWITCH 语句则要声明此段 is an initialized section that contains tables for switch statements. .sysmem section //The reserved space is used for dynamic memory allocation. It is prepared for memory allocation functions. If memory functions are not used in the program, the size of this section is 0. .esysmem section //(Enhanced large space memory operation)Reserved space is used for dynamic memory allocation. It is specially prepared for memory allocation functions. If memory functions are not used in the program, the content of this section is 0. .switch section //The table segment where switch statements are stored. If SWITCH statements are used, this segment must be declared is an initialized section that contains tables for switch statements. .sysmem section //The reserved space is used for dynamic memory allocation. It is prepared for memory allocation functions. If memory functions are not used in the program, the size of this section is 0. .esysmem section //(Enhanced large space memory operation)Reserved space is used for dynamic memory allocation. It is specially prepared for memory allocation functions. If memory functions are not used in the program, the content of this section is 0. .switch section //The table segment where switch statements are stored. If SWITCH statements are used, this segment must be declared is an initialized section that contains tables for switch statements.