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.

[参考译文] TMS320F28388D:.const 段不会按照链接命令文件中的指定进行对齐

Guru**** 2539510 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1377682/tms320f28388d-const-section-is-not-aligned-as-specified-in-link-command-file

器件型号:TMS320F28388D

工具与软件:

您好、专家

我已经将段.const 设置为在16字节边界上对齐、如下所示。

.const           : > CMBANK0_SECTOR9_13, ALIGN(16)

但我发现该部分并非在下面的映射文件中使用 align (16)创建的。

与我的预期相反、该段的长度为0x1C23、并且不按16字节对齐。

实际上、我希望在16字节边界上对齐.const 段、例如0x1C30、而不是0x1C23。

 

.const     0    00275d00    00001c23 

为什么会发生这种情况? 如何使段在16字节边界上全局化?

Thansks、

此致。