News for hackers. Stuff that matters.
Re:Volatile is Evil by Symmetry on Saturday February 12, 2011 @09:41AM (#2210059)
From "Nine ways to break your systems code using volatile" at http://blog.regehr.org/archives/28

"You can find various rants, screeds, and diatribes against volatile on Linux mailing lists and web pages. These are largely correct, but you have to keep in mind that:

Linux often runs on out-of-order multicores where volatile by itself is nearly useless. The Linux kernel provides a rich collection of functions for synchronization and hardware access that, properly used, eliminate almost all need for volatile in regular kernel code. If you are writing code for an in-order embedded processor and have little or no infrastructure besides the C compiler, you may need to lean more heavily on volatile."

There are no comments on this comment yet.