Computer Organization and Machine Language -Book: Computer Organization and Design ARM Edition - Chapter 5:Large and Fast: Exploiting Memory Hierarchy
Please also give explanation.
5.1 In this exercise we look at memory locality properties of matrix computation. The following code is written in C, where elements within the same row are stored contiguously. Assume each word is a 64-bit integer. for (I=0; I <8; I++) for (J=0; J<8000; J++) A[J]=B[0]+A[J]; 5.1.2 [5] <$5.1> Which variable references exhibit temporal locality? 5.1.3 [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