Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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, $0,10 loop: beg lw $tl, Ox4(S0) lw $t2, Ox24(S0) addi ?tO, $to, -1 loop 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 ?to, $0, 10 loop: beq St0, $0, done lw $tl, Ox4(S0) lw St2. 0x24(So)

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Joline Morrison, Mike Morrison

2nd Edition

? 061906448X, 978-0619064488

More Books

Students also viewed these Databases questions