C is just a glorified assembly macro
>>107730998>Misses a significant number of instructions
>>107730998how do I check the overflow flag in C?
>>107731032Intrinsics for addition with overflow checking, but you will generate assembly output so horrifying that if you care about code quality at all you will either just use a 64-bit (or the next larger) type or force yourself to just learn inline ASM syntax. But some stuff doesn't have intrinsics for flag checking. E.g.left and right shift instructions can set overflow based on the last lost digit so you can use it to get 33 bits of precision even though you only have a 32-bit register. This is useful for rounding using an add with carry for example.
>>107731032With a C23 macro called ckd_add.
No, C is lazy assembly: when you trust that the compiler is better at optimizing than you are.C harmful? Now you don't learn how to optimize!
>>107730998If it really was just a glorified assembler syntax then it wouldn't be portable now would it
>>107730998No, it's a shitty compiled language. C has nothing in common with assembly.