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

Discussion

Two instructions in the same basic block are guaranteed to

  • A.refer to different variables from one another in every case
  • B.execute the same number of times whenever the block is entered
  • C.compute values that are entirely independent of one another
  • D.be adjacent in the final target code that is generated

Answer: B

Control enters only at the top and leaves only at the bottom, so either every instruction in the block runs or none does. That guarantee is what makes local optimisation within a block so much simpler than reasoning across the whole procedure.

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

Post your comment

Please log in or register to post a comment.