Re:C Portability Lessons from Weird Machines
by rwmj on Monday February 21, 2022 @01:24PM
(#30418974)
C23 just dropped support for any non-twos-complement architectures. No more C on Unisys for you! http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2412.pdf
[ Parent
| on HN ]
Re:C Portability Lessons from Weird Machines
by eqvinox on Monday February 21, 2022 @03:12PM
(#30420009)
That doesn't preclude C23 on Unisys, it just forces the compiler to hide that fact from the programmer ;D
(SCNR)
Re:C Portability Lessons from Weird Machines
by bombcar on Monday February 21, 2022 @07:27PM
(#30422634)
Which will be wonderful for code compiled to C23 linked against C89 libraries, if that's even possible.
Re:C Portability Lessons from Weird Machines
by namibj on Monday February 21, 2022 @07:23PM
(#30422589)
One of the most widespread potential targets for non-two's-complement C would be JavaScript, or otherwise abusing floating point hardware for C's signed integers.
Because their overflow is indeed weird (and breaks associativity).
Re:C Portability Lessons from Weird Machines
by mmoskal on Monday February 21, 2022 @09:54PM
(#30423545)
It looks like signed overflow will be still undefined in C23 (but defined in C++).