Do we need to use volatile qualiifier when all kind of compiler optimization has been turned off, assuming it was required when we had compiler optimization enabled.
I read the post on SO Volatile and compiler optimization which says yes, but doesn't give any specific use-case where it is required.
Can someone point out the cases where their use is still required irrespective of any kind of optimization being enabled or disabled.