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/TMS320F28021:存储宏定义和枚举数据的位置

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/772627/ccs-tms320f28021-where-to-store-macro-definitions-and-enumeration-data

器件型号:TMS320F28021

工具/软件:Code Composer Studio

你(们)好  

在何处存储 宏定义和枚举数据? 如何查看它的地址?

我们进行以下测试。

1.更改 CCS 优化级别。 地图文件已更改。

2.不要更改 CCS 优化级别、 增加或减少 定义和枚举的数量。 在.map 文件中无更改。

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

    宏和枚举不会占用任何内存。 在预编译期间、宏被替换为它们的值。 枚举是编译时间实体、通常用于 typedef。 除非您定义了该类型的变量、否则它们不会占用内存。 因此它们都不会影响.out 的总大小

    此致、
    Veena