打印

TMS320F2812 CMD 文件各段的 含义

[复制链接]
1400|0
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
guoxuekun|  楼主 | 2008-8-15 13:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

.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.
转载请注明出自DSP交流网 DSP学习第一论坛 DSP技术应用与推广平台 DSP开发服务平台 http://www.hellodsp.com/bbs/,本贴地址:http://www.hellodsp.com/bbs/viewthread.php?tid=8828



相关帖子

发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

50

主题

53

帖子

0

粉丝