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 22:00
What is the most important aspect of marking media? a. data labelingb. content descriptionc. electronic labelingd. classification
Answers: 2
question
Computers and Technology, 22.06.2019 04:50
Which are steps taken to diagnose a computer problem? a) reproducing the problem and using error codes b) reproducing the problem and troubleshooting c) using error codes and troubleshooting d) using error codes and stepping functions
Answers: 1
question
Computers and Technology, 24.06.2019 09:50
Self contained sequences of actions to be performed are? a. expressions b. algorithms c. functions d. formulas
Answers: 1
question
Computers and Technology, 24.06.2019 17:50
You will subnet the network address 172.31.103.0/24. the network has the following requirements: · room-114 lan will require 27 host ip addresses · room-279 lan will require 25 host ip addresses · room-312 lan will require 14 host ip addresses · room-407 lan will require 8 host ip addresses how many subnets are needed in the network topology?
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
Mathematics, 06.10.2019 14:00
question
Social Studies, 06.10.2019 14:00
question
Mathematics, 06.10.2019 14:00
Questions on the website: 13722367