Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per second). This particular computer uses an
Suppose you have a RISC machine with a 2.7 GHz clock (i.e., the clock ticks 2.7 billion times per second). This particular computer uses an instruction cache, a data cache, an operand fetch unit, and an operand store unit. The instruction set includes simple instructions with the following timings: set reg, immed 3 clock cycle loop label add reg, immed 2 clock cycle add reg, reg load r 7 clock cycles 4 clock cycles 3 clock cycles eg, mem Assume that the following code fragment is used to sum the element of a numeric array. If the initialization code has already executed (i.e. the SET instructions have already finished execution) how many array elements can be processed in 3.8 ms? Round your answer to the nearest integer. Recall that 1 ms 0.001 seconds. Also assume that there are no physical memory limitations, implying that the array can be as large as desired ;initialize sum set r1, 0 set r2, MAX_SIZE ;initialize loop counter set r3, @list initialize array pointer more: load r4, r3 add r1, r4 add r3, 4 Loop more ;fetch current list element add currentlist element ;move array pointer to next element ;auto-decrement r2, jump to more if r2 !- 60
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started