3 ms·
The UB problems have no relation to the machine behavior. UB exists only on the compiler. The fact that many C developers keep confusing it with implementation
by marcosdumay 3y ago
The UB problems have no relation to the machine behavior. UB exists only on the compiler.
The fact that many C developers keep confusing it with implementation dependent behavior gives me no confidence on their other opinions about the language.
- Kamq 3y ago> 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.