SP Debug info incorrect

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

SP Debug info incorrect

ソリューションへジャンプ
3,544件の閲覧回数
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,109件の閲覧回数
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,110件の閲覧回数
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,109件の閲覧回数
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