Question: Question 3 (10 points) The following code was run on a system that has a two-way set associative cache (N=2) and a block size =

 Question 3 (10 points) The following code was run on a

Question 3 (10 points) The following code was run on a system that has a two-way set associative cache (N=2) and a block size = 1 word addi $t0, S0, 10 loop: beq St0, S0, done Iw St1,0x4(S0) Iw St2, 0x24(S0) addi St0, St0, -1 Assuming that the cache memory was initially empty: a) What is the miss rate after running this code? b) What is the hit rate after running this code? If the code was changed (by adding two extra load instructions) to addi St0, S0, 10 loop:beq St0, S0, done lw Stl, 0x4(S0) lw St2, 0x24(S0) lw St3, 0x34(S0) lw St4, 0x44($0) addi St0. St0, -1 Again, assume that the cache memory was initially empty: a) What is the miss rate after running this updated code? b) What is the hit rate after running this updated code? c) How do you think the hit rate can be increased

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!