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.

[参考译文] 编译器/C2000-CGT:有关 C2000-CGT's 映射文件的"孔洞& quot 的问题

Guru**** 2538930 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/816211/compiler-c2000-cgt-a-question-about-the-hole-of-c2000-cgt-s-map-file

器件型号:C2000-CGT

工具/软件:TI C/C++编译器

您好、TI 工程师

今天、当我在项目中添加 int 类型全局变量时、我遇到了一个问题、

我发现.ebss 的大小从0x3380变为0x33c0、因此我很困惑、所以进一步阅读 了映射文件、

我发现、当添加全局变量时、它会生成大小为0x3E 的空洞、

我想知道为什么新变量可以生成空穴、

我还有另一个问题、我发现映射文件中有许多空洞、它占用大量 RAM。

是否有任何方法可以删除这些孔洞? 以便我可以使用更多 RAM。

此致

但愿陈如此