Static Chain

Static Chain: Mechanism to implement non-local variable access in Static Scope

Each Variable (Local or Non-local) is represented as a 2-tuple:
(chain-offset , local-offset)

Chain-offset calculated as:

Local-offset of a variable is calculated as:

Advantage:

Disadvantage: