What does volatile mean?
Utilisateur anonyme
Volatile tells the compiler to not optimize the variable. As mentioned by in the previous answer, the data is read from the register and not the cache. This is used when a variable's value might change unpredictably and out of the control of code.