Question: A RISC processor has a three-address instruction format and typical arithmetic instructions (i.e., ADD, SUB, MUL, DIV etc). Write a suitable sequence of instructions to
A RISC processor has a three-address instruction format and typical arithmetic instructions (i.e., ADD, SUB, MUL, DIV etc). Write a suitable sequence of instructions to evaluate the following expression in the minimum time:

Assume that all variables are in registers and that the RISC does not include a hardware mechanism for the elimination of data dependency. Each instance of data dependency causes one bubble in the pipeline and wastes one clock cycle.
X = (A + B)(A + B + C)E + H G + A + B + D + F(A + B - C)
Step by Step Solution
3.39 Rating (152 Votes )
There are 3 Steps involved in it
It is necessary to write the code with the minimum number of R... View full answer
Get step-by-step solutions from verified subject matter experts
