volatile
Dale R. Worley
drw at fibonacci.math.mit.edu
Thu Oct 26 14:13:11 AEST 1989
In article <1989Oct25.020542.13354 at cc.Columbia.NCR.COM> haug at cc.Columbia.NCR.COM writes:
I understand the usage of volatile to indicate that a value may change for
reasons that are not necesarily apparent (hardware registers, interrupts, etc)
and so must be read from memory each time they are referenced. My question is:
must the value be written each time it is assigned[?]
Yes. I remember seeing a statement in the draft standard that both
reads and writes to a volatile l-value must be as in the "abstract
machine".
Dale drw at math.mit.edu
More information about the Comp.std.c
mailing list