in Compiler Design
7,065 views
25 votes
25 votes

Faster access to non-local variables is achieved using an array of pointers to activation records called a 

  1. stack
  2. heap
  3. display
  4. activation tree
in Compiler Design
7.1k views

3 Comments

anyone plz explain it!
0
0

@ShouvikSVK

Thanks :)

1
1

1 Answer

42 votes
42 votes
Best answer

Correct Option: C

Properties of displays    

  1. Use a pointer array to store the activation records along the static chain.
  2. Fast access for non-local but may be complicated to maintain.
  3. Calling a subprogram in the same level – simply replace and restore.
  4. Calling a subprogram in the higher level – add an entry and may need to save the old pointers.
  5. Calling a subprogram in the lower level – shrink the pointer and restore it when the subprogram returns.

http://users.dickinson.edu/~wahlst/356/ch10.pdf

edited by

4 Comments

nice point sachin sir
0
0
0
0
Is this part in syllabus now?
0
0
Answer:

Related questions