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.

[参考译文] CCS/MSP430G2231:CCS 版本9.0.1.00004中的链接器问题?

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/797225/ccs-msp430g2231-linker-problem-in-ccs-version-9-0-1-00004

器件型号:MSP430G2231

工具/软件:Code Composer Studio

您好!

我想为 MSP430g2231编写一个小型应用。 但是每次我构建项目时、警告消息"".stack"段大小需要与4个字节对齐、但指定的大小、0x32不是。 对齐的大小为0x34"。  是否有人可以向我解释这条消息的含义以及我如何防止它?

谢谢。

戈登

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

    堆栈的大小以字节为单位进行计数。  堆栈的大小必须被4除。  值0x32是十进制的50、不是。  因此 、发出该诊断并将堆栈大小增加到0x34或52。  为了避免此诊断、请将链接器选项-stack_size 更改为0x34、或可被4除的其他值。

    谢谢、此致、

    乔治