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

Discussion

An intermediate representation is generated rather than target code directly in order to

  • A.decouple the source language front end from the machine dependent parts
  • B.make the compiled program run faster than it otherwise would
  • C.satisfy some requirement of the language standard being implemented
  • D.cut down how many tokens the scanner is obliged to emit

Answer: A

Correct answer: decouple the source language front end from the machine dependent parts

With an intermediate form, m languages and n machines need m front ends and n back ends rather than m times n whole compilers. It also gives the optimiser a single representation to work on, independent of both ends - which is why the same optimisation passes serve every language the compiler accepts.

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

Post your comment

Please log in or register to post a comment.