Calibrating your fear of big bad optimizing compilers
Calibrating your fear of big bad optimizing compilers
Posted Oct 12, 2019 19:12 UTC (Sat) by hsivonen (subscriber, #91034)In reply to: Calibrating your fear of big bad optimizing compilers by excors
Parent article: Calibrating your fear of big bad optimizing compilers
Right. The C++11/C11 memory model has just UB and doesn’t say which thread of execution experiences the UB. For use cases like kernel vs. userland, hypervisor vs. guest, Web browser UI vs. renderer, and Wasm host vs. Wasm program, you want to have things defined such that the more privileged side can’t experience UB if the less privileged side doesn’t follow the rules.
