GATE Computer ScienceModerateGATE CS (PYQ pattern)

Which of the following about run-time environments is/are true? I. An access (static) link points to the frame of the lexically enclosing procedure. II. A control (dynamic) link points to the caller's frame. III. Languages without nested procedures need access links for every call. IV. A display gives constant-time access to non-local variables of any nesting depth.

  1. A. I and II only
  2. B. I, II and IV only
  3. C. I, II and III only
  4. D. II, III and IV only

Correct answer: B. I, II and IV only

Languages without nested procedure declarations (like C) need no access links, so III is false; a display array stores the frame pointer for each nesting depth, which makes access to a non-local constant-time.

More Compiler Design questions

Exams that ask this topic