CS 3304: Comparative Languages
Names and Binding
[
Course Documents
] : [
Names and Binding
]
Previous
Contents
Next
Keyword Index
Stack-Dynamic Lifetime
Storage bindings are created for variables when their declaration statements are elaborated
If scalar, all attributes except address are statically bound
Examples:
Local variables in Pascal and C subprograms
Locals in C++ methods
Advantages:
Allows recursion
Conserves storage
Disadvantages:
Overhead of allocation and deallocation
Subprograms cannot be history sensitive
Inefficient references (indirect addressing)