Compiler Design - Architecture




Compiler Design - Architecture

A compiler can broadly be divided into two phases based on the way they compile.

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.

Compiler Design - Architecture

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.

A compiler can have many phases and passes.

  • Pass : A pass refers to the traversal of a compiler through the entire program.

  • Phase : A phase of a compiler is a distinguishable stage, which takes input from the previous stage, processes and yields output that can be used as input for the next stage. A pass can have more than one phase.



Frequently Asked Questions

+
Ans: Compiler Design - Overview view more..
+
Ans: Compiler Design Tutorial view more..
+
Ans: Compiler Design - Architecture view more..
+
Ans: Compiler Design - Phases of Compiler view more..
+
Ans: Compiler Design - Lexical Analysis view more..
+
Ans: Compiler Design - Regular Expressions view more..
+
Ans: Compiler Design - Finite Automata view more..
+
Ans: Compiler Design - Types of Parsing view more..
+
Ans: Compiler Design - Top-Down Parser view more..
+
Ans: Compiler Design - Bottom-Up Parser view more..
+
Ans: Compiler Design - Error Recovery view more..
+
Ans: Compiler Design - Semantic Analysis view more..
+
Ans: Compiler Design - Run-Time Environment view more..
+
Ans: Compiler Design - Symbol Table view more..
+
Ans: Compiler - Intermediate Code Generation view more..
+
Ans: Compiler Design - Code Generation view more..
+
Ans: Compiler Design - Code Optimization view more..



Recommended Posts:


    Rating - NAN/5
    527 views

    Advertisements