The world is not ready for 'volatile'

Doug Gwyn gwyn at smoke.BRL.MIL
Wed Jan 4 17:48:03 AEST 1989


In article <15248 at mimsy.UUCP> chris at mimsy.UUCP (Chris Torek) writes:
>For folks concerned with portability, the word `volatile' does not
>exist in the language (with one exception), since the actual effect of
>the volatile qualifier is compiler-dependent.

No, that's wrong.  A conforming compiler is obliged to generate code
for "volatile" object accesses strictly in accordance with the
virtual machine model (no caching).  It is OTHER mechanisms for
accessing a volatile object during execution that are not specified.



More information about the Comp.lang.c mailing list