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

Discussion

Register assignment, as distinct from allocation, decides

  • A.whether the target machine has registers enough for the purpose
  • B.which specific register holds each value that has been allocated one
  • C.which values are worth keeping in registers at all
  • D.the sequence in which the generated instructions appear

Answer: B

Assignment matters because instructions may restrict which register a particular operand may use. Register pairs for multiplication and division are the classic constraint. Such constraints are expressed as pre-coloured nodes in the interference graph.

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

Post your comment

Please log in or register to post a comment.