Subject: Re: Fixes for acorn32 build after GCC4 upgrade
To: David Laight <david@l8s.co.uk>
From: Mike Pumford <mpumford@black-star.demon.co.uk>
List: current-users
Date: 06/27/2006 22:20:17
David Laight wrote:

> Woudn't it be better to dereference a pointer to a volatile memory location
> inside the loop - that way the compiler isn't allowed to optimise the
> loop away.
> 
The volatile variables seem to be enough for now. Although I can see a 
cleverer optimiser requiring the fix you propose.

A better fix would be to actually use a hardware timer. If I can figure 
out a way of doing that on acorn32 I'll see if I can fix the routine so 
that it no longer depends on the delay loop at all.

Mike