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?
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.
Post your comment
Please log in or register to post a comment.
Examination Categories
- SSC Exams
- Banking Exams
- Teaching Exams
- Civil Services Exams
- Railways Exams
- Engineering Recruitment Exams
- Defence Exams
- State Government Exams
- Police Exams
- Insurance Exams
- Nursing Exams
- Other Government Exams
- NRA CET
- PG Entrance Exams
- Campus Placement
- MBA Entrance Exams
- CUET and UG Entrance
- Judiciary Exams
- Regulatory Body Exams
- Software Development