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

Discussion

Retargeting a compiler to a new machine chiefly requires changing

  • A.the intermediate representation used throughout
  • B.the semantic analysis rules for the source language
  • C.the instruction selection, register allocation and calling convention
  • D.the lexical analyser and the parser belonging to the front end

Answer: C

Everything that depends on the machine lives in the back end. The front end depends on the source language and should not need to change at all. That separation is precisely what an intermediate representation exists to provide.

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

Post your comment

Please log in or register to post a comment.