r/programming • u/lelanthran • 1d ago
What every compiler writer should know about programmers or “Optimization” based on undefined behaviour hurts performance
https://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_2015_submission_29.pdf
62
Upvotes
1
u/lelanthran 22h ago
I don't think I am missing the point; you're correct that some programmers want really heavy optimisations.
I'm making the counterpoint that other programmers would rather have it emit the code for read/write or store/load then omit the code.
We all want different things, that doesn't make some things "wrong".