Nouchi

[CW7.0 for coldfire] weird behavior

Discussion created by Nouchi on May 19, 2008
Latest reply on May 26, 2008 by Nouchi
Hi,

Someone can explained this behavior?

Code:
 MCF_GPIO_SETAN = MCF_GPIO_SETAN_SETAN5; MCF_GPIO_DDRDD = 0x00;   
0001342E: 42394010002C    clr.b    0x4010002C (0x4010002c)      // MCF_GPIO_DDRDD = 0x0000013434: 7020            moveq    #32,d0               00013436: 13C04010003A    move.b   d0,0x4010003A (0x4010003a)   // MCF_GPIO_SETAN = MCF_GPIO_SETAN_SETAN5

 Why codewarrior invert execution order of two volatile variable (vuint8), when I use optimization level 4 (smaller code size)?


Emmanuel.


 



Message Edited by BugMan on 2008-05-19 11:16 AM

Outcomes