by mpweiher · 9y ago · 0 comments
I've been writing C for 30 years.
> UB is critical to performance
Not really, no. See
"What every compiler writer should know about programmers or “Optimization” based on undefined behaviour hurts performance"
(referenced elsewhere in this thread)
http://www.complang.tuwien.ac.at/kps2015/proceedings/KPS_201...
Thanks for the paper. It's very interesting but I think it has no real impact on my initial statement - these optimizations aren't going away, you can continue to expect problems like this vuln in the future for the same reasons.