Versions Compared

Key

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

Wiki Markup
As described in-depth in guidelinerule [DCL34-C. Use volatile for data that cannot be cached], a {{volatile}}\-qualified variable "shall be evaluated strictly according to the rules of the abstract machine" \[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\]. In other words, the {{volatile}} qualifier is used to instruct the compiler to not make caching optimizations about a variable.

...

Rule

Severity

Likelihood

Remediation Cost

Priority

Level

DCL17-C

medium

probable

high

P4

L3

Related Guidelines

ISO/IEC 9899:1999 Section 6.7.3, "Type qualifiers"

Bibliography

Wiki Markup
\[[Eide and Regehr|AA. Bibliography#Eide and Regehr]\] "Volatiles are miscompiled, and what to do about it"
\[[ISO/IEC 9899:1999|AA. Bibliography#ISO/IEC 9899-1999]\] Section 6.7.3, "Type qualifiers"

...

DCL16-C. Use 'L', not 'l', to indicate a long value      02. Declarations and Initialization (DCL)