Question: 1 . Assume that converting some C code ( f = g + h; where f , g , and h are all integers )

1. Assume that converting some C code (f = g+h; where f, g, and h are all integers) to MIPS assembly code is as follows: If $s4=1000(10), briefly explain by drawing a picture the PC values of the 2nd,3rd, and 4th instructions and the overall execution process of these three instructions. (Ignore pipeline/cache/virtual memory)
100(10) lw $t1,100(10)($s4)
???(10) lw $t2,104(10)($s4)
???(10) add $t1, $t1, $t2
???(10) sw $t1,112(10)($s4)
2. Explain (complete) the overall execution process of the four commands in question 1 using the first picture below. And, using the second picture, explain the CPU's internal operating process in the case of cc6, including MUX (including MUX indication).
 1. Assume that converting some C code (f = g+h; where

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!