06CS63 Compiler Design syllabus for CS


Part A
Unit-1 INTRODUCTION, LEXICAL ANALYSIS 8 hours

Language processors; The structure of a Compilers; The evolution of programming languages; The science of building a compiler; Applications of Compiler technology; Programming language basics; Lexical analysis: The Role of Lexical Analyzer; Input Buffering; Specifications of Tokens; Recognition of Tokens.

Unit-2 SYNTAX ANALYSIS 1 6 hours

Introduction; Context-free Grammars; Writing a Grammar; Top-down Parsing.

Unit-3 SYNTAX ANALYSIS 2 6 hours

Bottom-up Parsing; Introduction to LR Parsing: Simple LR.

Unit-4 SYNTAX ANALYSIS 3 6 hours

More powerful LR parsers; Using ambiguous grammars; Parser Generators.

Part B
Unit-5 SYNTAX-DIRECTED TRANSLATION 6 hours

Syntax-Directed definitions; Evaluation order for SDDs; Applications of Syntax-directed translation; Syntax-directed translation schemes.

Unit-6 INTERMEDIATE CODE GENERATION 8 hours

Variants of syntax trees; Three-address code; Types and declarations; Translation of expressions; Type checking; Control flow; Back patching; Switch statements; Intermediate code for procedures.

Unit-7 RUN TIME ENVIRONMENTS 6 hours

Storage Organization; Stack allocation of space; Access to non-local data on the stack; Heap management; Introduction to garbage collection.

Unit-8 CODE GENERATION 6 hours

Issues in the design of Code Generator; The Target language; Addresses in the target code; Basic blocks and Flow graphs; Optimization of basic blocks; A Simple Code Generator.

Last Updated: Tuesday, January 24, 2023