Compilers and computer architecture: Caches and caching
Martin Berger 1 December 2019
1Email: M.F.Berger@sussex.ac.uk, Office hours: Wed 12-13 in
Chi-2R312
1 / 1
Compilers and computer architecture: Caches and caching Martin - - PowerPoint PPT Presentation
Compilers and computer architecture: Caches and caching Martin Berger 1 December 2019 1 Email: M.F.Berger@sussex.ac.uk , Office hours: Wed 12-13 in Chi-2R312 1 / 1 Recall the function of compilers 2 / 1 Caches in modern CPUs Today we will
1Email: M.F.Berger@sussex.ac.uk, Office hours: Wed 12-13 in
1 / 1
2 / 1
3 / 1
4 / 1
5 / 1
6 / 1
7 / 1
8 / 1
9 / 1
10 / 1
11 / 1
12 / 1
13 / 1
14 / 1
Result Argument: 3 Control Return address: "in main" Result Argument: 2 Control Return address: "recursive" Main's AR f( 3 ) f( 2 ) main Result Argument: 1 Control Return address: "recursive" f( 1 ) Result Argument: 0 Control Return address: "recursive" f( 0 )
15 / 1
16 / 1
17 / 1
18 / 1
19 / 1
20 / 1
21 / 1
22 / 1
23 / 1
24 / 1
25 / 1
26 / 1
27 / 1
28 / 1
29 / 1
30 / 1
31 / 1
32 / 1
33 / 1
34 / 1
35 / 1
36 / 1
37 / 1
38 / 1
39 / 1
40 / 1
41 / 1
42 / 1
See prog/proc.c 43 / 1
44 / 1
45 / 1
46 / 1
ALU Registers
47 / 1
ALU Registers
L1 L2 L3 Main memory CPU Instruction cache
48 / 1
49 / 1
50 / 1