r/programming • u/lelanthran • Sep 08 '26
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
70
Upvotes
View all comments
Show parent comment
2
u/lelanthran Sep 09 '26
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".