2 ms·
This is probably not useful for production, but volatile is a great way to see what kind of code compiler generates in a realistic setting. For example, if you
by ychen306 7y ago
This is probably not useful for production, but volatile is a great way to see what kind of code compiler generates in a realistic setting. For example, if you want to see how compiler optimizes a code snippet and the code depends on a constant that you don't want to get constant folded away.