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

Discussion

Source level transformations such as loop interchange are performed on a tree rather than on three address code because

  • A.it contains the machine registers each value will occupy
  • B.rearranging nodes is far easier than renumbering instructions
  • C.it occupies less memory than the equivalent instruction list
  • D.it can be executed directly without any further translation

Answer: B

Rewriting a construct means rearranging nodes rather than renumbering instructions. Source level transformations are therefore normally done before the program is flattened. Loop interchange and unrolling are far easier to express on a tree.

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

Post your comment

Please log in or register to post a comment.