Problem 1 Consider the following loop which takes 8 cycles to execute one iteration (assuming cache hits). for (i = 0; i

Business, Finance, Economics, Accounting, Operations Management, Computer Science, Electrical Engineering, Mechanical Engineering, Civil Engineering, Chemical Engineering, Algebra, Precalculus, Statistics and Probabilty, Advanced Math, Physics, Chemistry, Biology, Nursing, Psychology, Certifications, Tests, Prep, and more.
Post Reply
answerhappygod
Site Admin
Posts: 899603
Joined: Mon Aug 02, 2021 8:13 am

Problem 1 Consider the following loop which takes 8 cycles to execute one iteration (assuming cache hits). for (i = 0; i

Post by answerhappygod »

Problem 1 Consider The Following Loop Which Takes 8 Cycles To Execute One Iteration Assuming Cache Hits For I 0 I 1
Problem 1 Consider The Following Loop Which Takes 8 Cycles To Execute One Iteration Assuming Cache Hits For I 0 I 1 (61.95 KiB) Viewed 27 times
Problem 1 Consider the following loop which takes 8 cycles to execute one iteration (assuming cache hits). for (i = 0; i < 562; i++) { A = c * A; } The penalty for a cache miss is 64 cycles. Each element of array A is 4 bytes. Assuming a cache block size of 4 bytes, show the above loop with compiler inserted prefetch instructions (as seen in class). Now assume that the cache block size is 16 bytes (assume aligned cache blocks i.e., a cache block starts at A[O]). Show the loop with compiler inserted prefetches.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!
Post Reply