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.
工具/软件:Code Composer Studio
您好!
我想为 MSP430g2231编写一个小型应用。 但是每次我构建项目时、警告消息"".stack"段大小需要与4个字节对齐、但指定的大小、0x32不是。 对齐的大小为0x34"。 是否有人可以向我解释这条消息的含义以及我如何防止它?
谢谢。
戈登
堆栈的大小以字节为单位进行计数。 堆栈的大小必须被4除。 值0x32是十进制的50、不是。 因此 、发出该诊断并将堆栈大小增加到0x34或52。 为了避免此诊断、请将链接器选项-stack_size 更改为0x34、或可被4除的其他值。
谢谢、此致、
乔治