This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Homework 7 : questions a) draw blocks around procedures to indicate the block structure of the program. b) what is the nesting level (largest block number)? c) write the execution history for this program in the form: program management starts management calls november(10) etc. d) draw the call graph for this program (a tree of calls). e) Show the stack of activation records directly after the instruction if d > 20 has been executed for the second time. Use the static links chain methods. f) What is the output assuming the static scoping ? What is the output assuming the dynamic scoping ? Each cell in the activation records should hold a value (return addresses may be left blank). For reference see notes and handouts, in particular 20101026.pdf 2...
View Full Document
- Fall '09
- Computer Science