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

Discussion

Machine idioms are exploited by a code generator when

  • A.a special instruction implements a common operation more cheaply
  • B.the source program uses an unusual construct
  • C.the intermediate code happens to contain no temporaries at all
  • D.the target machine has no registers available whatsoever

Answer: A

Increment and decrement instructions, multiply and accumulate, and address computation instructions are typical examples. Recognising them is part of instruction selection. A machine description lists the idioms the generator should look for.

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

Post your comment

Please log in or register to post a comment.