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

Discussion

At the end of a basic block, a simple code generator must

  • A.reload every variable that the block referred to
  • B.renumber the temporaries created within the block
  • C.store any live value that exists only in a register
  • D.release every register without storing anything at all

Answer: C

The next block may be reached from elsewhere and cannot assume the contents of registers. Storing live values at the boundary is what makes the per block generation safe. A global allocator avoids much of that traffic by reasoning across blocks.

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

Post your comment

Please log in or register to post a comment.