Do you volatile? Should you?
March 30, 2005Foreword — This article, by veteran Linux trainer Kevin Dankwardt, discusses “volatile,” a relatively unknown ANSI-C type modifier that ensures that the compiler generates code to reload a data item each time it is referenced. Volatile must be used with variables that may be altered asynchronously, such as by a signal handler or mapped hardware. (more…)