Compiler Design Syllabus (CIC-481T)
Compiler Design CIC-481T
All syllabus, notes, question bank & PYQ for this subject
- English
- Semester 7
- 0 downloads
- 0 views
Syllabus — Compiler Design
Download PDFCIC-481T · 3 credits · L-T-P 3-0-0
GGSIPU | Paper code CIC-481T | L-T-P 3-0-0 | Credits 3
Prerequisite Paper:
Course Outcomes
- CO1: Understand the phases of a compiler and implement lexical analysis techniques.
- CO2: Apply syntax analysis methods and construct parsers for programming languages.
- CO3: Analyze semantic structures and generate intermediate code representations.
- CO4: Design code optimization strategies and understand runtime environment management.
Unit 1
Introduction to compilers: structure of a compiler, phases of compilation, compiler construction tools. Lexical analysis: role of lexical analyzer, input buffering, specification of tokens, regular expressions, finite automata (DFA/NFA), lexical analyzer generators. Error handling in lexical analysis.
Unit 2
Role of parser, context-free grammars (CFG), derivations, parse trees. Top-down parsing: recursive descent parsing, predictive parsing, LL(1) grammars. Bottom-up parsing: shift-reduce parsing, LR parsing, SLR, CLR, and LALR parsers. Error recovery in syntax analysis.
Unit 3
Syntax-directed definitions and translation schemes.Type checking, symbol tables, semantic rules. Intermediate representations: syntax trees, DAGs, three-address code. Intermediate code generation for expressions, control flow, and procedures.
Unit 4
Code generation: issues in design, target machine, register allocation and assignment. Code optimization: machine- independent optimizations (constant folding, dead code elimination, common subexpression elimination). Machine-dependent optimizations. Runtime environment: storage organization, activation records, parameter passing.
Text Books
[1] A. V. Aho, M. S. Lam, R. Sethi, and J. D. Ullman, Compilers: Principles, Techniques, and Tools, 2nd ed. Boston, MA, USA: Pearson, 2007. [2] K. D. Cooper and L. Torczon, Engineering a Compiler, 2nd ed. Burlington, MA, USA: Morgan Kaufmann, 2011.
Reference Books
[1] D. M. Dhamdhere, Compiler Construction: Principles and Practice, 2nd ed. New Delhi, India: Macmillan India, 2008. [2] S. S. Muchnick, Advanced Compiler Design and Implementation. San Francisco, CA, USA: Morgan Kaufmann, 1997. [3] R. Mak, Writing Compilers and Interpreters: A Software Engineering Approach, 3rd ed. Hoboken, NJ, USA: Wiley, 2009.
Prepared from the official GGSIPU syllabus. Please check the latest official notification on ipu.ac.in for any change.
Ratings & Reviews
No reviews yet — share your experience with this item.