In a simplified computer the instructions are:
OP Rj,RiOP m,RiMOV m,RiMOV Ri,mPerform Rj OP Ri and store the result in register RjPerform val OP Ri and store the result in register Rival denotes the content of the memory location mMoves the content of memory location m to register RiMoves the content of register Ri to memory location m
The computer has only two registers, and OP is either ADD or SUB. Consider the following basic block:
t1=a+b
t2=c+d
t3=e−t2
t4=t1–t3
Assume that all operands are initially in memory. The final value of the computation should be in memory. What is the minimum number of MOV instructions in the code generated for this basic block?