CS 3304: Comparative Languages
Implementing Subprograms
[
Course Documents
] : [
Implementing Subprograms
]
Previous
Contents
Next
Keyword Index
Technique 2--Displays
The
idea
: Put the static links in a separate stack called a
display
The entries in the display are pointers to the ARIs that have the variables in the referencing environment
Represent references as (display_offset, local_offset), where display_offset is the same as chain_offset
Advantage: constant-time nonlocal access