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.

[参考译文] TMS320F28375D:通过 C 编译器升级更改变量地址顺序

Guru**** 2419210 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1036822/tms320f28375d-variable-address-order-change-with-c-compiler-upgrade

器件型号:TMS320F28375D

这与 C2000 C 编译器有关:

升级编译器时、编译器/链接器生成的变量映射是否会保持先前版本的顺序?

或者是否有编译器/链接器选项来保持变量顺序不变。

我们的系统中有非易失性存储器。 某些变量的内容可能会在整个固件升级过程中持续存在。 更改后的变量地址/顺序会给我们带来问题。

提前感谢。

李敏嘉

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    [引用 userid="318091" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1036822/tms320f28375d-variable-address-order-change-with-c-compiler-upgrade "]升级编译器时,编译器/链接器生成的变量映射是否会保持先前版本的顺序?

    这不能保证。  可能、但不保证。

    [引用 userid="318091" URL"~/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1036822/tms320f28375d-variable-address-order-change-with-c-compiler-upgrade "]是否有编译器/链接器选项可保持变量顺序不变。

    如果您需要将变量按特定顺序排列、请考虑 此论坛主题中提供的解决方案。

    谢谢、此致、

    乔治