4 ms·
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?
by theseoafs 12y 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?
- mikeash 12y agoThat'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.