Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider Listning 1 on the last page. Assume the code is executed on a 32-bit MIPS processor that includes an instruction cache with the following

image text in transcribed

image text in transcribed

Consider Listning 1 on the last page. Assume the code is executed on a 32-bit MIPS processor that includes an instruction cache with the following properties: Capacity = 512 bytes, direct mapped, block size 8 bytes. Assume that the cache is empty (all valid bits are zero) before you call function sum. (a) Will the instruction cache utilize temporal locality or spatial locality, or both? (b) What is the instruct cache miss rate when executing the function? Only count the memory accesses within the function, that is, the first instruction in the function is xor and the last one jr. The function is called with the following C statement sum( 0x6ff 1000, 100) ; and the first instruction of sum is located at address 0x00400000. Answer as a rational number

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_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

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

Get Started

Students also viewed these Databases questions