Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What chips can be targeted by C compilers today that don't use 2's complement?


I haven’t seen a one’s complement machine in decades but at the time C was standardized here were still quite a few (afaik none had a single-chip CPU, to get to your question). But since they existed, the language definition didn’t require it and some optimizations were technically UB.

The C++ committee decided that everyone had figured this out by now and so made this breaking change.




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

Search: