Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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).
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Principles Programming And Performance

Authors: Patrick O'Neil

1st Edition

1558603921, 978-1558603929

More Books

Students also viewed these Databases questions

Question

Identify the types of informal reports.

Answered: 1 week ago

Question

Write messages that are used for the various stages of collection.

Answered: 1 week ago