[SDL] Re: Re: MacOS : Circus Linux update, SDL changes
Randi J. Relander
rjrelander at users.sourceforge.net
Mon Aug 7 07:25:31 PDT 2000
Darrell Walisser wrote:
>
> Funny thing is, that last bne doesn't jump back to the first
> lwz! It jumps back to subfc instruction! Obviously the cause
> of our troubles!
>
> I think this problem recurs for this loop too:
>
> /* Wait for the exact 60th tick to roll over */
> while(tick + 60 > MyLMGetTicks());
>
Sounds like the optimizer is assuming that "MyLMGetTicks" always returns the
same value (e.g. sqrt(2.0)). Try tagging "MyLMGetTicks" as volatile.
- Randi
Regimental Command
Generic Armored Combat System
http://regcom.sourceforge.net
More information about the SDL
mailing list