Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

volatile eliminates this confusion by imposing restrictions on access and cacheing. According to the C99 Rationale]:

No cacheing through this lvalue: each operation in the abstract semantics must be performed (that is, no cacheing assumptions may be made, since the location is not guaranteed to contain any previous value). In the absence of this qualifier, the contents of the designated location may be assumed to be unchanged except for possible aliasing.

...