Machine-translated by Google. Questions are authored in English.
Top

Discussion

Generating intermediate code for a nested procedure requires recording

  • A.the registers the procedure will use at run time
  • B.the source line on which the procedure was declared
  • C.the nesting depth so that non local names can be reached
  • D.the number of instructions the procedure will occupy

Answer: C

Access to a variable in an enclosing procedure needs the depth difference, which selects how many links to follow. Access links or a display implement the traversal at run time. Languages without nested procedures avoid the whole mechanism.

No comment is present. Be the first to comment.
Loading…

Post your comment

Please log in or register to post a comment.