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

Discussion

A compiler that uses several intermediate representations in succession is

  • A.restricted to a single source language and target machine
  • B.lowering the program gradually toward the target machine
  • C.necessarily slower than one using a single representation
  • D.unable to perform any machine independent optimisation

Answer: B

Correct answer: lowering the program gradually toward the target machine

Each level exposes different detail and permits different optimisations, so a modern compiler moves through several - a structured form, then a linear one, then something close to the machine. Optimisations are placed where the information they need is still visible, which no single representation could achieve.

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

Post your comment

Please log in or register to post a comment.