[OpenBIOS] About udelay

Lennart Sorensen lsorense at csclub.uwaterloo.ca
Fri May 3 23:54:24 CEST 2013


On Fri, May 03, 2013 at 05:50:39PM -0400, Programmingkid wrote:
> I see that you used a loop to simulate a wait time. I think there must be a better way of doing it. Doesn't the Sparc emulator have access to a hardware clock that we can use instead of a loop?

I would have thought the compiler was allowed to optimize away a loop
that incremented something that noone ever looks at.  It doesn't do
anything after all.

-- 
Len Sorensen



More information about the OpenBIOS mailing list