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

Discussion

Next use information for a variable in a basic block records

  • A.the instruction at which its current value will next be read
  • B.the number of times the variable appears in the whole procedure
  • C.the register the variable was assigned on the previous iteration
  • D.the type of the variable as recorded in the symbol table

Answer: A

A value with no next use in the block need not be kept in a register past its last use. Computing next use by scanning the block backwards is the standard method. The same information also tells the generator when a register may be freed.

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

Post your comment

Please log in or register to post a comment.