Chapter 2: Introduction to compilers

How to reduce development and testing effort?

. DO NOT WRITE COMPILERS

. GENERATE compilers

. A compiler generator should be able to "generate" compiler from the source language and target machine specifications

The compiler generator needs to be written only once. To generate any compiler for language L and generating code for machine M, we will need to give the compiler generator the specifications of L and M. This would greatly reduce effort of compiler writing as the compiler generator needs to be written only once and all compilers could be produced automatically.