Compiler Engineering Syllabus
Compiler Engineering Syllabus
L T P C
4 0 0 4
COMPILER ENGINEERING
Course Objectives
This course will help the learner to explain various phases in translating source language to
target language construct scanner and parser, design Adhoc syntax directed translator, and
identify the opportunities for optimization.
UNIT - I 15 Periods
Overview: Introduction - Compiler structure - Overview of translation Scanners: Introduction -
Implementing Scanners - Using Lex: Regular expressions - A word count program Parsers:
Introduction - Review of top down parsing - Bottom up parsing
UNIT - II 15 Periods
Using YACC: A YACC parser-The lexer - Arithmetic expression and ambiguity - Variables and
typed tokens Context Sensitive Analysis: Introduction - Adhoc syntax directed translation.
Intermediate Representations: Introduction - Graphical IRs - Linear IRs - Mapping values to
names - Symbol tables
UNIT - IV 15 Periods
Instruction Scheduling: Instruction Scheduling problems - Local List scheduling - Regional
Scheduling: Register Allocation: Background issues - Local Register Allocation and
Assignment - Global register Allocation and Assignment
TEXTBOOKS
1. Keith D.Cooper and Linda Torczon. Engineering a Compiler, Morgan Kauffman
Publishers, Second Edition, 2013.
2. Levine, John R., Tony Mason, and Doug Brown. Lex & yacc, O’Reilly Media, Inc.,
Second Edition, 2013.
SASTRA
REFERENCES
1. Dick Grune, Kees Van Reewijk, Henry E.Bal, C. J.H. Jacobs, Koen G. Langendoen,
Modern Compiler Design, Springer, Second Edition, 2012.
2. Das, Vinu V. Compiler Design using FLEX and YAC, Prentice Hall of India Learning
Pvt.Ltd, 2007.
3. Alfred V.Aho, Ravi Sethi, Jeffrey D. Ullman, Monica S. Lam. Compilers: Principles,
Techniques and Tools, Pearson Education, Second Edition, 2006.
ONLINE MATERIALS
1. http://nptel.ac.in/courses/Webcourse-contents/IIT-KANPUR/compiler-
desing/ui/TOC.html
2. http://nptel.ac.in/courses/106108052/