Nested Blocks…
declare
a : Integer;
begin
…
declare
b : Float;
begin
… a … b …
end;
… a …
end;
Lifetimes are now different
length of block only
Allocate addresses as they are encountered in the compiler
Take a note of allocation counter at block entry points
return to saved counter on exit from block
Previous slide
Next slide
Back to first slide
View graphic version