Computer Organization and Machine Language -Book: Computer Organization and Design ARM Edition - Chapter 5:Large and Fast: Exploiting Memory Hierarchy
Please also give explanation.
Locality is affected by both the reference order and data layout. The same computation can also be written below in Matlab, which differs from C in that it stores matrix elements within the same column contiguously in memory. for I=1:8 for J=1:8000 A(I,J)=B (1,0) +A(J, I); end end 5.1.4 [5] <$5.1> Which variable references exhibit temporal locality? 5.1.5 [5] <$5.1> Which variable references exhibit spatial locality?
Computer Organization and Machine Language - Book: Computer Organization and Design ARM Edition - Chapter 5: Large and F
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am