4 ms·
C is supposed to be reasonably portable so it doesn’t make too much sense to depend on flags that are not available on all platforms.
by tinus_hn 4y ago
C is supposed to be reasonably portable so it doesn’t make too much sense to depend on flags that are not available on all platforms.
- int_19h 4y agoIt's easier to find a platform that doesn't support floating-point numbers than one that doesn't have some kind of overflow flag. Some kind of platform-independent abstraction is long (as in, decades) overdue.
- noobermin 4y agoSure, but it kind of is insane that there are platforms (like ARM apparently, did not know) that do NOT have a carry flag.
- derefr 4y agoWhy can’t it be a flag on some platforms and complex hereafter branching logic on other platforms? Like the division shim on platforms that don’t have a division instruction?