This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CMD文件的问题

CMD文件中,.cio    , .switch    , xdc.meta    , .args等分别对应什么意思?

还有如图所示中的指令,又是什么意思?谢谢~~

  • 系统定义
    .cinit     存放程序中的变量初值和常量
    .const   存放程序中的字符常量、浮点常量和用const声明的常量
    .switch  存放程序中switch语句的跳转地址表
    .text     存放程序代码
    .bss      为程序中的全局和静态变量保留存储空间
    .far       为程序中用far声明的全局和静态变量保留空间
    .stack    为程序系统堆栈保留存储空间,用于保存返回地址、函数间的参数传递、存储局部变量和保存中间结果
    .sysmem 用于程序中的malloc 、calloc 、和realoc 函数动态分配存储空间
    “.args”段用于存储程序中的main(…)函数的“argc”、“argv”和“envp”参数值,该属性值一般保持默认值即可。
    The .cio section is a buffer used by printf and related functions. You can typically afford slower performance of such I/O
    functions, so it is placed in off-chip memory.
    关于xdc.meta确实不是很清楚。看还有谁能答复呢。

  • 谢谢啊~~~