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

Discussion

Spilling a value means

  • A.recomputing it from scratch at every point of use
  • B.keeping it in memory and loading it around each use
  • C.throwing it away on the grounds that it will never be read again
  • D.handing it to a register that belongs to some other procedure

Answer: B

A store after the definition and a load before each use replace the register. Allocators choose to spill the value whose uses are fewest or least frequently executed. A value used only outside loops is nearly always the better candidate.

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

Post your comment

Please log in or register to post a comment.