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

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 15:00
Look at the circuit illustrated in the figure above. assume that the values of r1 and r2 are equal. if you connect your meter’s test probes to points a and b in the circuit, which of the following voltages would you measure
Answers: 1
question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories.
Answers: 2
question
Computers and Technology, 22.06.2019 19:10
How might the success of your campaign be affected if you haven’t carefully completed all field data or if you accidentally insert the wrong merge field in the document?
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
The graph shows median weekly earnings for full-time workers according to education level. which can you not conclude?
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
question
Law, 10.04.2021 07:10
question
World Languages, 10.04.2021 07:10
question
Mathematics, 10.04.2021 07:10
Questions on the website: 13722367