SP Debug info incorrect

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

SP Debug info incorrect

跳至解决方案
3,995 次查看
patti
Contributor I
HI,,
 
I get warning C12056: SP debug info incorrect because....
 
How do I found out what is wrong? In the help it says that is can be notting, or it can be o problem, how do I found out what is making the warning.
 
thanks in advance
Patrik
标签 (1)
标记 (1)
0 项奖励
回复
1 解答
1,560 次查看
CompilerGuru
NXP Employee
NXP Employee
First this is about the HC12 compiler, this was not mentioned in this thread.

AFAIK, this warning should occur for plain C code only when the common code optimization is enabled. So if it disapears with -Onf, then you have to be careful with the displayed values of locals even if they are on the stack, but the generated code is correct. If it does not disapear, then I would recomment to provide a reproducible case here.


Daniel

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,561 次查看
CompilerGuru
NXP Employee
NXP Employee
First this is about the HC12 compiler, this was not mentioned in this thread.

AFAIK, this warning should occur for plain C code only when the common code optimization is enabled. So if it disapears with -Onf, then you have to be careful with the displayed values of locals even if they are on the stack, but the generated code is correct. If it does not disapear, then I would recomment to provide a reproducible case here.


Daniel
0 项奖励
回复
1,560 次查看
CrasyCat
Specialist III
Hello
 
According to my own experience, this message is generated when you are modifying the value of the SP inside of a function.
 
In order to evaluate in your case whether this is a serious issue, I would recommend you to submit an SR through our on line support page and get support people take a look at that.
 
You will need to attached the project reproducing the trouble to the SR.
 
CrasyCat