Compiler Design and Construction syllabus
CSC3655 units · 46 topicsAcademic year 2083/84
Browse the units
1Introduction to Compilers (3 hrs)
- 1.1
Compiler Structure: Analysis and Synthesis Model of Compilation, sub-phases within analysis and synthesis phases
- 1.2
Basic concepts related to compiler such as interpreter
- 1.3
Simple One-Pass Compiler
- 1.4
Preprocessor, macros
- 1.5
Symbol table and error handler
2Analysis Phases (22 hrs)
- 2.1
Lexical Analysis- 2.1.1
Its role
- 2.1.2
Specification and Recognition of tokens
- 2.1.3
Input Buffer
- 2.1.4
Finite Automata relevant to compiler construction, syntactic specification of languages
- 2.1.5
Optimization of DFA based pattern matchers
- 2.2
Syntax Analysis- 2.2.1
Its role
- 2.2.2
Basic parsing techniques: Problem of Left Recursion, Left Factoring, Ambiguous Grammar
- 2.2.3
Top-down parsing
- 2.2.4
Bottom-up parsing
- 2.2.5
LR parsing
- 2.3
Semantic Analysis- 2.3.1
Static and Dynamic Checks
- 2.3.2
Typical Semantic errors
- 2.3.3
Scoping
- 2.3.4
Type Checking
- 2.3.5
Syntax directed definitions (SDD) and Translation (SDT)
- 2.3.6
Attribute Types: Synthesized and Inherited
- 2.3.7
Annotated Parse Tree
- 2.3.8
S-attributed and L-attributed grammar
- 2.3.9
Applications of syntax directed translation
- 2.3.10
Type Systems
- 2.3.11
Type Checking and Conversion
3Symbol Table and Run-time Storage (4 hrs)
- 3.1
Symbol Table Design- 3.1.1
Function of Symbol Table
- 3.1.2
Information provided by Symbol Table
- 3.1.3
Attributes and Data Structures for symbol table
- 3.2
Run-time storage management
4Code Generation and Optimization (16 hrs)
- 4.1
Intermediate Code Generator- 4.1.1
High-level and Low-level Intermediate representation
- 4.1.2
Syntax tree and DAG representations
- 4.1.3
Three-address code, Quadruples, Triples
- 4.1.4
SDT for intermediate code
- 4.1.5
Intermediate code generation for Declarations, Assignments, Control Flow, Boolean Expressions and Procedure Calls
- 4.1.6
Back patching
- 4.2
Code Generator- 4.2.1
Factors affecting a code generator
- 4.2.2
Target Language
- 4.2.3
Basic blocks and flow graphs
- 4.2.4
Dynamic programming code-generation algorithm
- 4.3
Code Optimization- 4.3.1
Need and criteria of Code Optimization
- 4.3.2
Basic optimization techniques
- 4.4
Case Studies of some compilers like C compiler, C++ compiler
5Laboratory Works
- 5.1
Create a project using lexical analyzer generator or any high level language
- 5.2
Create a parser using parser generator or any high level language
- 5.3
Write programs for intermediate code generation