Computer Organization and Machine Language - Book: Computer Organization and Design ARM Edition - Chapter 5: Large and F
Posted: Tue Jul 12, 2022 8:09 am
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?
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?