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

Discussion

The activation record for a procedure typically holds

  • A.locals, saved registers, the return address and temporaries
  • B.the machine code of the procedure body itself
  • C.the symbol table entries for every one of the procedure names
  • D.the intermediate code generated for the procedure

Answer: A

Its layout is fixed by the calling convention and the compiler. Locals are addressed as offsets from a frame pointer or from the stack pointer directly. Recursion is exactly why a local cannot be given a fixed address.

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

Post your comment

Please log in or register to post a comment.