Wednesday, June 26, 2013

Answers of Concepts of Programming Languages Chapter 10

Review Questions
1. Subprograms cannot be nested and all local variables are static
4. The task of linker is put the executable programs together.
5. The reason why implementing subprograms with stack-dynamic local variables is more difficult :

  • The compiler must generate code to cause the implicit allocation and deal-location of local variables
  • Recursion adds the possibility of multiple simultaneous activations of a subprogram
6. Activation record is the format of noncode part of a subprogram, while activation record instance is a concrete example of an activation record. 
11. EP stands for environment pointer. EP is used to access parameters and local variables during the execution of a subprogram.

No comments:

Post a Comment