News for hackers. Stuff that matters.
Re:A Guide to Undefined Behavior in C and C++ (2010) by banachtarski on Sunday November 04, 2018 @02:35AM (#18374747)
My point still stands in that I don't want the compiler to check for division by zero if I don't ask it to.
Re:A Guide to Undefined Behavior in C and C++ (2010) by saagarjha on Sunday November 04, 2018 @02:54AM (#18374791)
Sure, then use C or C++ and check for it yourself. But if you mess up your program is invalid, so there's that. If you don't like that, write your own assembly by hand to convert this to implementation-defined behavior instead of undefined behavior.