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

Discussion

An instruction schedule that violates a data dependence produces code that is

  • A.unable to be assembled into machine instructions
  • B.wrong rather than merely slower than it might be
  • C.correct but slower than the original ordering was
  • D.identical in behaviour to any other valid schedule

Answer: B

Reading a value before it has been written gives the wrong answer, not a stall. Dependences are therefore hard constraints on the schedule, while latencies are merely costs the scheduler tries to hide by filling the gaps with independent work.

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

Post your comment

Please log in or register to post a comment.