IAR for MSP430,警告【堆栈使用分析】至少有一个函数没有堆栈使用信息

问题描述

项目编译后有两个警告。

1.Warning[Ls014]:[stack usage analysis]at least one function does not have stack usage information.Example:"?SwitchKey16".A complete list of such funtions is in the map file.
2.Warning[Ls016]:[stack usage analysis]the program contains at least one indirect call.Example:from"VS_TaskRun".A complete list of such funtions is in the map file.

我已经修复了第二个警告,因为我的程序中有一些使用函数指针的间接调用函数,在函数指针前添加#pragma calls=func1,func2...告诉编译器可能调用函数。 但是第一个Warning让我困惑了好久,?SwitchKey16好像在library里,而且switch里面case很多,可能20+了,这个Warning怎么解决

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)