KTU 2024 Scheme · Semester 6 · Program Elective III — Information Technology
Compiler Design (PEITT631) Syllabus
Official KTU 2024 Scheme syllabus for Compiler Design, Semester 6, Program Elective III — Information Technology (Information Technology).
Course Code
PEITT631
Credits
3
Teaching Hours
3:0:0:0 (L:T:P:R)
CIE Marks
40
ESE Marks
60
Exam Duration
2 Hrs. 30 Min.
Prerequisites
PCITT303 - Data structures PEITT525 - Formal Languages and Automata Theory
Semester
Semester 6
Course Objective
To provide students with a foundational knowledge of compiler design, including the need for compilers, their phases, and the tools used in their construction. To enable students to design and implement lexical and syntax analyzers using various parsing methods, including both top-down and bottom-up approaches. To equip students with the skills to generate intermediate code, optimize code, and develop a basic code generator.
Module-wise Syllabus
Module 1
9 contact hoursFundamentals: Need of compiler, Analysis of the source program, Phases of a compiler, grouping of phases, compiler writing tools, Cross compiler. Lexical Analyser: The role of Lexical Analyzer, Review of Finite Automata, Design of Lexical Analyser using DFAs, Specification of Tokens using Regular Expressions.
Module 2
9 contact hoursSyntax Analyser: Review context-free grammars, Parse Trees, Ambiguous Grammars. Top - Down Parsing: Recursive Descent Parser, Predictive Parser-LL(1). Bottom-Up Parsing: LR(0) parser, SLR(1) parser, CLR(1) parser, LALR parser.
Module 3
9 contact hoursSemantic Analyser: Syntax directed definitions: S-attributed definitions, L- attributed definitions. Bottom- up evaluation of S- attributed definitions, Top-down translation, Bottom-up evaluation of inherited attributes. Intermediate Code Generation (ICG): Need of ICG, Different representation of intermediate code, intermediate code for assignment statement.
Module 4
9 contact hoursCode Optimization: Principal sources of optimization, Optimization of basic blocks. Code Generation: Issues in the design of a code generator, A simple code generator.
Course Outcomes
- CO1Describe the phases of a compiler, their functions, and the tools utilized in compiler construction.
- CO2Design and implement a lexical analyzer using deterministic finite automata (DFAs) and regular expressions.
- CO3Apply various parsing techniques, including top-down (recursive descent and LL(1)) and bottom-up (LR(0), SLR(1), CLR(1), and LALR) methods, and construct parse trees.
- CO4Develop test automation strategies and utilize automation and testing tools effectively to test object-oriented software and web-based systems, while applying debugging techniques to track and resolve bugs in various environments
Assessment Pattern (CIE: 40 marks, ESE: 60 marks)
Continuous Internal Evaluation (CIE)
| Attendance | 5 |
| Assignment / Microproject | 15 |
| Internal Examination 1 (Written) | 10 |
| Internal Examination 2 (Written) | 10 |
End Semester Examination (ESE)
Total 60 marks, 2 Hrs. 30 Min.. See the official KTU syllabus document for the exact Part A / Part B question pattern for this course.
Textbooks & Reference Books
Textbooks
- Compilers Principles, Techniques and Tools — Alfred Aho, Ravi Sethi and Jeffrey D Ullman (Pearson Education, Updated Second Edition, 2023)
Reference Books
- Compiler Construction: Principles and Practice — Kenneth C. Louden (PWS Publishing Company, Second Edition, 1997)
- Lex &Yacc — Levine J.R, Mason T, Brown D (OReilly Associates, First edition, 1992)
- Compiler Design in C — Allen I. Holub (Prentice Hall, First edition, 2003)
Frequently Asked Questions
How many credits is KTU Compiler Design (PEITT631)?
3 credits, with 3:0:0:0 (L:T:P:R) teaching hours per week, under the KTU 2024 Scheme.
How many modules are in the PEITT631 syllabus?
4 modules, 36 total contact hours.
What is the CIE and ESE mark split for this course?
CIE (Continuous Internal Evaluation): 40 marks. ESE (End Semester Examination): 60 marks, 2 Hrs. 30 Min.. Total: 100 marks.
What are the recommended textbooks for PEITT631?
Compilers Principles, Techniques and Tools (Alfred Aho, Ravi Sethi and Jeffrey D Ullman).
Is this syllabus specific to one branch, or common to others too?
This Semester 6 course is listed under Program Elective III — Information Technology at KTU under the 2024 Scheme — check the course header above for which branches it's common to.
Need help with KTU Compiler Design?
Learnizo offers live, 1-on-1 online tuition for KTU IT subjects — matched to your exact module and semester.