Compiler Construction Chapter1
Compiler Construction Chapter1
Analysis Phase
• Known as the front-end of the compiler,
the analysis phase of the compiler reads the source
program, divides it into core parts and then checks for
lexical, grammar and syntax errors.
• The analysis phase generates an intermediate
representation of the source program and symbol table,
which should be fed to the Synthesis phase as input.
Synthesis Phase:
• Known as the back-end of the compiler,
the synthesis phase generates the target program
with the help of intermediate source code
representation and symbol table.
1. Create a compiler SCAA for subset, S of the desired language, L using language "A"
and that compiler runs on machine A.