Issues in the design of a code generator
Issues in the design of a code generator
P:=Q+R
S:=P+T
MOV Q, R0
ADD R, R0
MOV R0, P
MOV P, R0
ADD T, R0
MOV R0, S
t:=a+b
t:=t*c
t:=t/d
MOV a,R0
ADD b,R0
MUL c,R0
DIV d,R0
MOV R0,t
Correct
Easily maintainable
Testable
Efficient