The compiler can optimize the code as it sees fit, until the resulting code has the same observed side effects.
Thus, variables can be optimized to exist only in registers or replaced with immediate values. In pseudo-machine code:
SET 10, eax ST eax, &i
can be:
SET 10, eax ADD eax, ebx, ebx
or even just:
ADD 10, ebx, ebx
Oliver Charlesworth Aug 22 2018-11-18T00: 00Z
source share