Assertion (A): A single pass compiler is generally faster than a multipass compiler.
Reason (R): It avoids writing intermediate representations to a file and reading them back again.
Answer: B
Both are true and the reason gives the mechanism, and the trade-off is against optimisation quality. A single pass compiler cannot see the whole program at once, so it must generate code before later information arrives and misses optimisations a multipass compiler would find.
Please log in or register to report this question.