3 ms·
I wonder how many processors there are in use these days that don't use 2s complement. I don't think I've ever seen one.
by jandrese 9y ago
I wonder how many processors there are in use these days that don't use 2s complement. I don't think I've ever seen one.
- davemp 9y agoCertainly not general CPUs, but there are probably domain specific processors out there that use something else. Why would you want to design a domain specific processor and still use C? Beats me.
- adrianratnapala 9y agoEven if you don't really want C on such a process there will be an emergent and unholy aliance between (1) a pointy-hair impulse within the manufucturer to have "programmable in C" on the feature list and (2) an empire-building impulse within the C standards writing ecosystem that wants to encompass every chip under the sun.
- davemp 9y agoThose forces are so strong people are still pushing for C on FPGAs.
- smitherfield 9y agoThe bigger reason it's still undefined is to enable this type of optimization: https://news.ycombinator.com/item?id=14857316 https://news.ycombinator.com/item?id=14857316
- jandrese 9y agoThe comment thread seems to suggest that even if you define the behavior you can still optimize that case, and in fact Clang does.