"Dave Lippincott" <[EMAIL PROTECTED]> wrote in message
news:63291@palm-dev-forum...
>
> If you're using the debugger to look at the values of t1...t4, make
sure you
> have all optimizations turned off.
Note -- you're not seeing bad code be generated -- you're just seeing
the effects of having the compiler place all of your variables into the
same register. Since t1..t4 aren't being used after they are assigned,
the compiler can optimize register space by having them all go to the
same register, since the variables have non-intersecting lifetimes.
In CodeWarrior for Palm OS V8, coming out next month, the debugger can
be setup to show where the variables are stored, so you can see in the
variable window that all of these are assigned to a single register or
stack location. This really helps if you're trying to follow the code
at the assembly level.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/