News for hackers. Stuff that matters.
Re:No sane compiler would optimize atomics (2015) by pornel on Monday July 12, 2021 @05:52AM (#27808686)
"run as written" implies targeting an abstract machine that performs operations the way programmer imagines it does. This machine isn't specified anywhere.

The hard part is that programmers don't imagine the code to be executed in a naive unoptimized way, but still expect it to be reasonably well optimized (converted to "obviously" equivalent assembly), except where optimizations combine into a result they haven't thought of.

There are no comments on this comment yet.