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/MSP430FR5994:Pragma数据部分。

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/624592/ccs-msp430fr5994-data-section-pragma

部件号:MSP430FR5994

工具/软件:Code Composer Studio

#pragma data_section(符号,"节名")

如何为地址范围指定分区名称?

我对编程很陌生,如果答案很明显,我很抱歉。

提前感谢您的参与。

维斯瓦纳思。

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

    在我回答之前,您需要一些背景知识。  请阅读文章 链接器命令文件入门中的第一部分。  清楚地了解输入部分如何来自目标文件,如何组合到输出部分,以及如何将这些输出部分分配到内存范围

    data_section pragma是告诉编译器对特定全局变量或静态变量使用哪个输入节的方法。

    谢谢,此致,

    -George