Answered step by step
Verified Expert Solution
Question
1 Approved Answer
12. Consider the following code sequence. Load r1.(r0,#0) add r1 r1,r1 load r2.(r0,#4) mul rl,r1,r2 load r2, (r0,#8) mul r1,r1,r2 load r2.(r0,#12) mul r1,r1,r2 str
12. Consider the following code sequence. Load r1.(r0,#0) add r1 r1,r1 load r2.(r0,#4) mul rl,r1,r2 load r2, (r0,#8) mul r1,r1,r2 load r2.(r0,#12) mul r1,r1,r2 str rl.(r0,#0) Assume the latencies for the instructions are load - 3, add - 1, mul - 2. Calculate the number of clock cycles required to perform the above code? (4) Reschedule the code and indicate how many clock cycles were reduced on rescheduling. (6)
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