Hi Ernst,
>When I debug the following code in Codewarrior :
>
>static void myfunc(void )
>{
> int x; // this is not the exact code but it will demonstrate my point.
> int y;
> x = 1;
> y =5;
>}
>
>and step through it, the integers will have the same value in the
>variables window.
>So when y = 5 is executed, x also becomes 5 in the variables window.
This is the result of register coloring (using the same register or memory location
for two variables which are never used at the same time). A quick disassembly of the
code will tell you if this is the case -- please post.
Regards,
Jim Schram
3Com/Palm Computing
Partner Engineering