Hacker News new | past | comments | ask | show | jobs | submit login

> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: