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

Discussion

An instruction is a leader of a basic block if it

  • A.assigns a value to a compiler generated temporary
  • B.contains an operator with two operands rather than one
  • C.appears at an even numbered position in the sequence
  • D.is the first instruction, a jump target, or follows a jump

Answer: D

Those three rules identify every point at which control may enter. Applying them to a sequence of instructions yields the partition into blocks directly. No judgement is involved, so the partition can be computed mechanically.

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

Post your comment

Please log in or register to post a comment.