For these problems, the table holds MIPS assembly code fragments. You will be asked to evaluate each of the code fragments, familiarizing you with the different MIPS branch instructions.
![2449_bdcb88a7-a690-44a3-9cd0-03d5494fd649.png](https://secure.tutorsglobe.com/CMSImages/2449_bdcb88a7-a690-44a3-9cd0-03d5494fd649.png)
1.What is the total number of MIPS instructions executed?
2. Translate the loops above into C. Assume that the C-level integer i is held in register $t1, $s2 holds the C-level integer called result, and $s0 holds the base address of the integer MemArray.
3. Rewrite the loop to reduce the number of MIPS instructions executed.