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.

[参考译文] CCS/TMS320C5505:如何将变量分配给链接器命令文件中的分配

Guru**** 2380860 points
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/851306/ccs-tms320c5505-how-to-assign-variable-to-a-allocation-within-the-linker-command-file

器件型号:TMS320C5505

工具/软件:Code Composer Studio

大家好、我从前面的问题中学到了链接器命令、我尝试向 CE1分配一个新的数据包:

.storage > CE1 align (32) fill = 00h


问题是、如何将变量放入此.storage 段中?

是否有人可以发布这样做的源代码、例如、我想放置 Int16 sample [48000]

谢谢:))

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    [引用 user="Harry Chan]问题是、如何将变量放入此.storage 段?使用 DATA_SECTION pragma。 例如:

    #pragma DATA_SECTION (示例、".storage") 

      更多详细信息、请参阅《C55x C/C++优化编译器用户指南》。