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.

[参考译文] TMS570LC4357:如何确保.data 段长度是8字节对齐的?

Guru**** 2390755 points


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

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1441586/tms570lc4357-how-to-ensure-data-section-length-is-8-byte-aligned

器件型号:TMS570LC4357

工具与软件:

您好!

我正在尝试确保.data我的 CMD 文件中的部分同时包含这两者 起始地址对齐 长度对齐 8个字节。

我的当前设置如下:

当起始地址正确对齐时、长度不是8字节对齐。 链接器输出显示:

.data   0 f021a000    00001d0e   运行 ADDR = 0800e8a8

如何确保段长度四舍五入为接下来的8个字节的倍数?  有任何建议吗?

谢谢!

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

    尊敬的 Hanson:

    你能尝试应用 pallign 看看吗?

    ——
    谢谢、此致、
    Jagadish。

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

    尊敬的 Jagadish:

    它的工作原理是这样。 非常感谢。

    ——
    此致、
    汉森