Lecture Notes for February 13
Read for Today
Topics to Cover Today
- Deferred topics (to Chapter 8): detailed activation record,
static links, frame/stack pointers, calling sequence, subroutine
prologue/epilogue
- Scope rules
- scope of a binding
- referencing environment
- Static (lexical) scope
- C: look at the blocks, nested scopes is okay (shadowing)
- Pascal: C plus nested subroutines (static link, static
chain)
- Pascal/C/C++: forward declarations (declaration versus
definition)
- LISP/Scheme/Ruby: Pascal plus first class subroutines
(closures)