Is the carry flag obsolete?

134 views Asked by At

The carry flag seems to have two main uses. 1) it is useful for chaining addition/subtraction instructions to operate on numbers larger than native size. Adding 32bit ints on an 8-bit architecture for example. 2) it is used for conditional branches. There are some less common uses as well (I've used fcomi on intel for example). In particular, the carry flag is not defined or accessible from C or any other common non-assembler language. With 32 and 64bit architectures being quite common and most software written in C I have to wonder:

Is the carry flag obsolete? Who would miss it if a new architecture came along without it?

I'm assuming it would not be required as a condition code (flags replaced by predicates for example), so AFAICT only it's use for chaining add/sub/rot and the effect of shifting in/out of it would be gone.

0

There are 0 answers