Skip to Content
Computers as Components, 2nd Edition
book

Computers as Components, 2nd Edition

by Marilyn Wolf
July 2008
Intermediate to advanced
544 pages
16h 52m
English
Morgan Kaufmann
Content preview from Computers as Components, 2nd Edition
5.7 Software Performance Optimization 261
Once the a[0][1] access brings that line into the cache, it remains there for the a[0][2]
and a[0][3] accesses since the b[] accesses are now on the next line. However, the scenario
repeats itself at a[1][0] and every four iterations of the cache.
One way to eliminate the cache conflicts is to move one of the arrays. We do not have to
move it far. If we move b’s start to 4100, we eliminate the cache conflicts.
However, that fix won’t work in more complex situations. Moving one array may only intro-
duce cache conflicts with another array. In such cases, we can use another technique called
padding. If we extend
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Computers as Components, 3rd Edition

Computers as Components, 3rd Edition

Marilyn Wolf
Computer System Designs: System-on-Chip

Computer System Designs: System-on-Chip

Michael J. Flynn, Wayne Luk
PC Hardware in a Nutshell, 3rd Edition

PC Hardware in a Nutshell, 3rd Edition

Robert Bruce Thompson, Barbara Fritchman Thompson

Publisher Resources

ISBN: 9780123743978