Write short notes on compiler construction tools.

For the construction of a compiler, the compiler writer uses different types of software tools that are known as compiler construction tools

Compiler-construction tools are,
  1. Parser generators  
  2. Scanner generators
  3. Syntax-directed translation engines
  4.  Automatic code generators
  5.  Data-flow engines
images Scanner generators: They automatically produce lexical analyzers or scanners.
images Parser generators: They produce syntax analyzers or parsers.
images Syntax-directed translation engines: They produce a collection of routines, which traverses the parse tree and generates the intermediate code.
images Code generators: They produce a code generator from a set of rules that translates the intermediate language instructions into the equivalent machine language instructions for the target machine.
images Data-flow analysis engines: They gather the information about how the data is transmitted from one part of the program to another. For code optimization, data-flow analysis is a key part.
images Compiler-construction toolkits: They provide an integrated set of routines for construction of the different phases of a compiler.