View
3
Download
0
Category
Preview:
Citation preview
1
Topic 5: Activation Records
COS 320
Compiling Techniques
Princeton University Spring 2018
Prof. David August
2
Activation Records
3
The Stack
4
Example
5
Example
6
Example
7
Recursive Example
8
Recursive Example
9
Recursive Example
10
Functional Languages
11
Functional Languages
12
Functional Languages
13
Stack Frame Organizations
14
Typical Stack Frame
15
Stack Frame Example
16
Stack Frame Example
17
Stack Frame Example
18
Parameter Passing
19
Parameter Passing
20
Registers
21
Registers
22
Registers
23
Return Address and Return Value
24
Frame Resident Variables
25
Static Links
26
Static Links
27
Static Links
28
Static Links
Recommended