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, 21.06.2019 21:00
Analyze the following code. int x = 1; while (0 < x) & & (x < 100) system.out.println(x++); a. the loop runs forever. b. the code does not compile because the loop body is not in the braces. c. the code does not compile because (0 < x) & & (x < 100) is not enclosed in a pair of parentheses. d. the numbers 1 to 99 are displayed. e. the numbers 2 to 100 are displayed.
Answers: 3
question
Computers and Technology, 23.06.2019 21:00
Will this setup result in what kathy wants to print?
Answers: 2
question
Computers and Technology, 23.06.2019 23:30
Worth 50 points answer them bc i am not sure if i am wrong
Answers: 1
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.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
Mathematics, 06.11.2020 09:20
question
World Languages, 06.11.2020 09:20
Questions on the website: 13722362