Versions Compared

Key

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

...

However, as demonstrated in "Volatiles are miscompiledAre Miscompiled, and what What to do Do about itIt" [Eide and Regehr], all tested compilers generated some percentage of incorrect compiled code with regard to volatile accesses. Therefore, it is necessary to know how your compiler behaves when the standard volatile behavior is required. The authors also provide a workaround that eliminates some or all of these errors.

...

[Eide and Regehr]"Volatiles Are Miscompiled, and What to Do about It"
[ISO/IEC 9899:2011]Section 6.7.3, "Type Qualifiers"