Codewarrior and 64-bits local variables

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

Codewarrior and 64-bits local variables

2,133件の閲覧回数
MPC_user
Contributor I
Hi !!

I used a MPC5554 with CodeWarrior v4.2 build 130 and WinIDEA as debugger.

I have some problems with 64 bits local variables.

In a function, I declare 2 local variables f type "unsigned long long"
The first one is located into stack (internal ram)
The second one is located at 0x00000000 (internal flash). The area is unmodifiable.

Is there any configuration of MPC or compiler/linker option to solve this problem ?
Have you already see that phenomenon ?

Thanks for answers



Message Edited by MPC_user on 2009-02-03 02:36 PM
ラベル(1)
タグ(1)
0 件の賞賛
返信
1 返信

1,187件の閲覧回数
stanish
NXP Employee
NXP Employee
Hello,

I'd suspect this might be the result of compiler code optimization. Is the second variable used by the function? You can try to add "volatile" modifier to the definition of the local variable.

Stanish

0 件の賞賛
返信