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

Discussion

Instruction scheduling and register allocation interact because

  • A.scheduling removes the need for any registers at all
  • B.allocation determines the latency of each instruction
  • C.spreading instructions apart lengthens value lifetimes
  • D.both must be performed before instruction selection

Answer: C

A longer schedule keeps more values live at once and so needs more registers, which may force spilling. Doing allocation first instead constrains the schedule that can be produced. Some compilers interleave the two rather than choosing an order.

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

Post your comment

Please log in or register to post a comment.