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

Discussion

A register descriptor in a simple code generator records

  • A.the cost of each addressing mode on the machine
  • B.the number of instructions generated so far
  • C.which values are currently held in each register
  • D.which registers the target machine actually provides

Answer: C

Together with the address descriptor, which records where each value can be found, it lets the generator avoid reloading a value that is already in a register. Those two tables are the whole state the simple algorithm maintains.

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

Post your comment

Please log in or register to post a comment.