2 ms·
Why not simply imagine it as something like this: ; c = a + b load reg1, a load reg2, b add reg1, reg2 store reg1, c
by Koshkin 8y ago
Why not simply imagine it as something like this:
; c = a + b
load reg1, a
load reg2, b
add reg1, reg2
store reg1, c
- freeone3000 8y agoThat's the correct steps, but that doesn't add anything that the original C code doesn't do. On x86, that could be: mov [ebx], eax add [ecx], eax Which is an entirely separate set of operands, instructions, and addressing modes. It's still the same steps, but it's not really telling you anything.