Hacker News new | ask | show | jobs
by mikeash 4307 days ago
That's discussed in the article. Volatile ultimately applies to the storage, so a sufficiently smart compiler may be able to deduce that you're lying to it with the cast and elide the write.