3 ms·
Atomic Weapons: The C++ Memory Model and Modern Hardware
- peter_d_sherman 7y agoExcerpts: "Q: Does your computer execute the program you wrote? A: What a quaint concept! Think: Compiler optimization, processor OoO execution, cache coherency. Compiler/processor/cache says: “No, it’s much better to execute a different program. Hey, don’t complain. It’s for your own good. You really wouldn’t want to execute that dreck you actually wrote.” My Comments: See the referenced document for the why...