| | |
Summary: 4/22/2011
1
Chapter 8Chapter 8 Subroutines and ControlSubroutines and Control
AbstractionsAbstractions
1
Three major parts of a runtime
environment:
· Static area allocated at load/startup time. Examples:
global/static variables and load-time constants.
· Stack area for execution-time data that obeys a last-
in first-out lifetime rule. Examples: method variables
and temporaries.
· Heap or dynamically allocated area for "fully
dynamic" data, e.g. data allocated with new
2
4/22/2011
2
Procedure Overview
· When functions are "first class" data items themselves, they can be
dynamically created and used like values just like any other data
|