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

Discussion

A team adds an eighth target machine to a compiler suite that already supports 6 languages through a common intermediate representation. How many new components must be written?

  • A.14
  • B.1
  • C.6
  • D.8

Answer: B

A common intermediate representation decouples front ends from back ends, so adding a target costs exactly one component: \[ \text{new components} = 1 \ \text{(back end)} \] Without the shared representation the team would need one translator per language, \( 6 \times 1 = 6 \) new components, and the full matrix for \( m \) languages and \( n \) targets would be \( m \times n \) rather than \( m + n \). Avoiding exactly that multiplication is what the design buys.

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

Post your comment

Please log in or register to post a comment.