subject

You have a 1,024-byte direct-mapped data cache with 16-byte blocks. A structure is defined as: 1 struct my_struct { 2 int x; 3 int y; }; 6 struct my_struct grid[16][8]; 7 int total_x = 0, total_y = 0; 8 int i, j; Determine the cache performance for the following code: 1 for (i = 0; i < 16; i++) { 2 for (j = 0; j < 8; j++) { 3 total_x += grid[i][j].x; 4 } 5 } 7 for (i = 0; i < 16; i++) { 8 for (j = 0; j < 8; j++) { 9 total_y += grid[i][j].y; 10 } 11 } a) What is the total number of reads? b) What is the total number of reads that miss in the cache? c) What is the miss rate? d) How to modify the program to decrease the miss rate. Show the new miss rate you get. Assume: sizeof(int)

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 01:00
Complete the sentence about a presentation delivery method
Answers: 2
question
Computers and Technology, 23.06.2019 16:00
Helen is having a meeting with her colleagues in her company. they are working on the goals and objectives for the coming year. they want to ensure that these goals and objectives of the processes involved are properly evaluated. which system can helen and her colleagues apply to evaluate this? helen and her colleagues require a blank to evaluate the goals and objectives.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Refer to the figure and match the theorem that supports the statement.1.if chords are =, then arcs are =.if bc = de, then arc bc = arc de2.if arcs are =, then chords are =.if arc bc = arc de, then bc = de3.diameters perpen
Answers: 3
question
Computers and Technology, 24.06.2019 16:00
Which type of cloud computing offers easily accessible software and applications on the machines
Answers: 1
You know the right answer?
You have a 1,024-byte direct-mapped data cache with 16-byte blocks. A structure is defined as: 1 str...
Questions
question
Physics, 27.02.2021 20:30
question
French, 27.02.2021 20:30
question
Spanish, 27.02.2021 20:30
Questions on the website: 13722367