3 ms·
That's not really "fooling" the optimizer, that's kind of the point of volatile. The optimizer not making optimizations is the intended behaviour.
by mattnewport 1y ago
That's not really "fooling" the optimizer, that's kind of the point of volatile. The optimizer not making optimizations is the intended behaviour.
- anonymousiam 1y agoYou're right, but the article failed to mention that there was a way around the optimizations.