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

Discussion

Register allocation decides

  • A.which values reside in registers over which parts of the program
  • B.which particular register each value will occupy
  • C.the sequence in which the instructions will finally be executed
  • D.how many bytes each declared variable will occupy

Answer: A

Allocation chooses what to keep in registers and assignment chooses which register. The two are often performed together, though the distinction matters when discussing algorithms. Machine constraints on particular registers make the second decision non trivial.

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

Post your comment

Please log in or register to post a comment.