2 ms·
It's one thing to use a jo (branch on overflow) instruction. But there's another problem: a = b + c + 47; can be implemented as: LEA a, 47[b+c] (a,
by WalterBright 11y ago
It's one thing to use a jo (branch on overflow) instruction. But there's another problem:
a = b + c + 47;
can be implemented as:
LEA a, 47[b+c]
(a, b and c are assigned to registers)
This does not generate any trap or flag when it overflows, it just wraps. It's an important optimization, too.