Mail Archives: djgpp/1997/08/06/11:21:08
On Wed, 6 Aug 1997, Korenschi Francisc Eduard wrote:
> I know it sounds crazy, but what does the 'voltaile' with a
> variable/function ?
The volatile storage class notifies the compiler that a variable's
value may change unexpectedly, perhaps as the result of the action of
an interrupt/signal handler or asynchronous thread. The compiler
should then generate code to reload the variable from memory to a
register each time it is accessed and not depend on any previous load
to a register. In general the compiler will also generate an
immediate store instruction if the register is modified, where it
might defer the store otherwise.
Art S. Kagel, kagel AT bloomberg DOT com
- Raw text -