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

Discussion

A triple representation differs from a quadruple in that it

  • A.records which machine registers are used by each instruction
  • B.omits the result field and refers to instructions by position
  • C.adds a fourth operand field to each instruction
  • D.stores the operator as a string rather than a code

Answer: B

Correct answer: omits the result field and refers to instructions by position

A triple saves the result field by letting an instruction be referred to by its own index in the sequence. That is more compact but couples every reference to the instruction’s position, so any reordering breaks it - which is why indirect triples were devised, adding a level of indirection to restore the freedom.

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

Post your comment

Please log in or register to post a comment.