|
|
|
|
|
by marcosdumay
1078 days 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. |
|
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.