The following problems deal with translating from MIPS to C. Assume that the variables f, g, h,

Question:

The following problems deal with translating from MIPS to C. Assume that the variables f, g, h, i, and j are assigned to registers $s0, $s1, $s2, $s3, and $s4, respectively. Assume that the base address of the arrays A and B are in registers $s6 and $s7, respectively.25 s11 $s2, $s4, 1 add $50, $s2, $s3 add $50, $s0, $sl b. sll $t0, $s0. 2 add $t0, $56. $t0 s11 $t1, $sl, 2

How many registers are needed to carry out the MIPS assembly as written above? If you could rewrite the code above, what is the minimal number of registers needed?

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Related Book For  book-img-for-question

Computer Organization And Design The Hardware Software Interface

ISBN: 9780123747501

4th Revised Edition

Authors: David A. Patterson, John L. Hennessy

Question Posted: