Question: Suppose we have a 2 - way set associative cache for instructions. All instructions are 4 bytes ( e . g . , MIPS architecture
Suppose we have a way set associative cache for instructions. All instructions are bytes eg MIPS architecture The cache can store instructions, or bytes. Suppose the cache is initially empty and then the following loop is run:
Address decimal
Instructions
Comments
LOAD A
Register A
Call
Subroutine call to Address
DEC A
Decrements A by ie A A
JANZ
Jump to address if A
STOP
Stop the program
INC B
Increment register B by ie B B
RET
Return from subroutine
a pt If the cache is direct mapped, how many misses will there be
b pt If the cache were way set associative, how many misses will there be
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
