Hacker News new | ask | show | jobs
by theseoafs 4309 days ago
Can't you just cast it to a `volatile uint8_t *` at some later point when you need to ensure that we've zeroed the memory?
1 comments

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.