Sixth Semester
Compiler Design and Construction
Course Description: This course is designed to develop acquaintance with fundamental concepts of compiler design. The course starts with the basic concepts and also includes different phases of compilers like lexical analysis, syntax analysis, syntax-directed translation, type checking etc. in detail.
Course Objectives:
- To develop knowledge in compiler design
- To develop lexical analyzers, parsers, and small compilers using different tools
- To develop lexical analyzers, parsers, and small compilers by using general purpose programming languages.
Contents of Chapter |
|---|
Unit 1: (3 Hrs.)
1.1 Compiler Structure: Analysis and Synthesis Model of Compilation, different sub-
phases within analysis and synthesis phases
|
Unit 2: (22 Hrs.)
1.1 Lexical Analysis: Its role, Specification and Recognition of tokens, Input Buffer,
Finite Automata relevant to compiler construction syntactic specification of
languages, Optimization of DFA based pattern matchers
|
Unit 3: (4 Hrs.)3.1 Symbol Table Design: Function of Symbol Table, Information provided by Symbol Table, Attributes and Data Structures for symbol table |
Unit 4: (16 Hrs.)
.1 Intermediate Code Generator: High-level and Low-level Intermediate representation,
Syntax tree & DAG representations, Three-address code, Quadruples, Triples, SDT for intermediate code, Intermediate code generation for Declarations, Assignments,
Control Flow, Boolean Expressions and Procedure Calls; Back patching
|