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

Discussion

Virtual registers in an intermediate representation are

  • A.memory locations reserved for the compiler's own use
  • B.registers that exist only while the compiler itself is running
  • C.an unlimited supply of names later mapped onto real registers
  • D.the registers the target machine actually provides

Answer: C

Generating code against an unlimited set separates selection from allocation. The allocator afterwards maps them onto the real set, spilling wherever the mapping does not fit. Separating the two concerns makes each of them considerably simpler to write.

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

Post your comment

Please log in or register to post a comment.