News for hackers. Stuff that matters.
Re:Being Sneaky in C by vvanders on Friday June 12, 2015 @06:16PM (#9708900)
Volatile should only be used with hardware registers. It doesn't do exactly what you want here. It will guarantee that memory will be accessed but it doesn't guarantee the ordering which can lead to some really nasty behaviour.

The only place that keywork should be used is a qualifier for member functions or when used in an embedded sense. It's not well defined outside of that scope.

Re:Being Sneaky in C by kllrnohj on Monday June 15, 2015 @06:51PM (#9722681)
volatile's designed purpose is for memory-mapped things, not hardware registers.