Hacker News new | ask | show | jobs
by hctaw 1867 days ago
What chips can be targeted by C compilers today that don't use 2's complement?
1 comments

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.