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.

[参考译文] MSP430F2011:如何在使用 Code Composer Studio 进行编译时删除22字节常量?

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

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1027677/msp430f2011-how-to-remove-the-22-bytes-constant-when-compiling-with-code-composer-studio

器件型号:MSP430F2011

我使用的是 MSP430F2011、我需要闪存中的每个字节。 我注意到有一个22字节的字符串常量:

看起来像 GUID。 我没有定义它。 如何将其删除?

是否有其他方法可以优化程序的大小? 我已经在使用-O4。

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

    看起来它是一 个生成的标识符、当我使用全局优化时、它会组合字符串、因为当我向字符串添加字符时、它会更改长度。 但是、当我编译完整代码时、我仍然需要100个字节、也许我必须在汇编器中编写一些部分。