3 ms·
x86 (and 8080, Z80) can push/pop the flags register, allowing the flags bit mask to be used as regular data, not just with instructions which explicitly check t
by flohofwoe 4y ago
x86 (and 8080, Z80) can push/pop the flags register, allowing the flags bit mask to be used as regular data, not just with instructions which explicitly check those flags. So proving that specific flags are not used by the code might actually not be that easy.
- sroussey 4y agoAlso, Rosetta surprisingly does not do much for optimization, opting for correctness and leaving speed to the silicon.