Re:“C is quirky, flawed, and an enormous success” – Dennis R...
by Kamq on Sunday July 09, 2023 @12:49PM
(#36656094)
> UB exists only on the compiler.
Sure, but UB exists so that compilers can generally do whatever's fastest on that particular architecture.
Your signed add instruction traps? Great, do that. Does one on a different architecture overflow? Fine. Just emit it and it's conformant.
The fact that many C developers keep confusing it with implementation dependent behavior gives me no confidence on their other opinions about the language.