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

Discussion

Instruction scheduling reorders instructions in order to

  • A.allow the register allocator to be omitted entirely
  • B.avoid pipeline stalls on the target processor
  • C.reduce the number of instructions in the program
  • D.make the generated code easier for a human to read

Answer: B

Placing independent instructions between a load and its use hides the latency. Scheduling interacts with register allocation, since a longer schedule needs more registers. Balancing the two is one of the harder problems in back end design.

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

Post your comment

Please log in or register to post a comment.