3 ms·
This is totally right and shouldn't be downvoted, but the reply is also right that volatile should prevent optimization. On some hardware, "writing" to "memory
by nitrogen 9y ago
This is totally right and shouldn't be downvoted, but the reply is also right that volatile should prevent optimization.
On some hardware, "writing" to "memory" is really sending a message to a device, and writing 0x80 followed by 0x08 is not the same thing as writing 0x88.