subject

Consider the following c-code fragment: for (i=0; i< 100; i++) z[i] = a[i] - b[i]; assume that - a, b, and z are arrays of 32-bit words. the machine code for this fragment is stored in memory starting from location 100 hex. a- convert this code to mips. you must provide the numeric offset for each branch or jump instruction that you use. (50 points) b- assume that the cpis for mips instructions on a multi-cycle system m1 are as listed below: lw : 5 cycles r-type, addi, sw, and other immediate arithmetic instruction : 4 cycles beq, bne, and j: 3 cycles other instructions: 4 cycles how many clock cycles does it take to execute the c-code fragment on system m1? justify your answer (20 points) c- assume that the clock rate for m1 is 2.5 ghz. what is the cpu execution time for the code on m1? (10 points) d- compute cpu execution time of the code for a single-cycle system with clock rate 1.6 ghz (20 points)

ansver
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 06:00, Treezy11
In outlook how can cherie look at the details of an event that appears on the month view of her calendar? check all that apply. by switching to the detail view by switching to the week view by switching to the day view by right-clicking on the event by double-clicking on the event by highlighting the event
Answers: 2
image
Computers and Technology, 23.06.2019 17:00, chrisgaz14
The more powerful, 60 volt cables and the main power shut off on an hev are both colored orange
Answers: 1
image
Computers and Technology, 24.06.2019 00:50, sequoyaburke
Which player type acts on other players? a. killer b. achiever c. explorer d. socializer
Answers: 1
image
Computers and Technology, 24.06.2019 02:30, talia43
Assume a class window with accessor method getwidth that accepts no parameters and returns an integer. assume further an array of 3 window elements named winarr, has been declared and initialized. write a sequence of statements that prints out the width of the widest window in the array.
Answers: 2
You know the right answer?
Consider the following c-code fragment: for (i=0; i< 100; i++) z[i] = a[i] - b[i]; assume tha...

Questions in other subjects:

Konu
Mathematics, 10.12.2020 01:40
Konu
Biology, 10.12.2020 01:40