TI DSP CMD 文件各段含義

.text section    //代碼段usually contains executable code
.cinit section   // C語言 代碼的 全局和靜態變量 存放地址 C initialization records for explicitly initialized global and static variables
.pinit section   // C++語言 代碼的 全局和靜態變量 存放地址
.stack section  // C 語言 堆棧段 is an uninitialized section used for the C system
stack.
.bss section   //保留變量空間  爲未初始化的臨時變量準備 可以是彙編也可以是C
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.
.ebss section  //保留變量空間  爲未初始化的臨時變量準備 只爲C準備
//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.

.const section // 全局不變量段 如字符串或恆量 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.
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章