Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

(a) (3 points) Consider a program P, which contains two different loops, Loop-A and Loop-B. When a user runs P, on a processor, Loop-A iterates

image text in transcribed

(a) (3 points) Consider a program P, which contains two different loops, Loop-A and Loop-B. When a user runs P, on a processor, Loop-A iterates 10 times and each Loop-A iteration has 5 instructions. In comparison, Loop-B iterates only twice but each Loop-B iteration has 25 instructions. Thus, both Loop-A and Loop-B execute the same total number of instructions (50). Which of the two loops do you expect to have more instruction cache hits? Why? (b) (3 points) The cache block size in many computers is in the range of 32 to 128 bytes. What would be the main advantages and disadvantages of making the size of cache blocks larger or smaller

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions