Compiler Design (CMP 422) — Semester 6 (VI) notes, Pokhara University BECE
How compilers are built: phases of a compiler, lexical analysis, parsing, syntax-directed translation, type checking, symbol tables, intermediate code, code optimization and code generation.
Compiler Design syllabus units (Pokhara University)
- Overview of Compilation (4 hours)
- Scanners (7 hours)
- Parsers (6 hours)
- Intermediate Representations (5 hours)
- Code Generation (4 hours)
- Machine Independent Optimization (4 hours)
Compiler Design past questions
25 files: lecture notes, question collections, lab reports and more for Compiler Design.
Syllabus
- Compiler Design.pdf
Chapter 1_Overview of Compilation
- Unit 1.pdf
Chapter 2_Scanners
- Unit 2.pdf
Chapter 3_Parsers
- Unit 3 Parser.pdf
Chapter 4_Intermediate Representation
- Unit 4 Intermediate representation.pdf
Chapter 5_Code Generation
- Unit 5 code generation.pdf
Chapter 6_ Machine Independent Optimization
- Unit 6 machine independent optimization.pdf
Files
- Compiler Design [Full Note].pdf
Lab Works
- Lab 1,2,3.docx
- Lab 1,2,3.pdf
Lab Works/Lab2
- commentCheck.cpp
- commentCheck.exe
- constantCheck.py
- splitString.cpp
- splitString.exe
- string.c
- string.exe
Lab Works/Lab3
- count_program.c
- Questions.txt
- recognize_strings.c
- recognize_strings.exe
- scan_count_file.c
- scan_count_file.exe
Lab Works/Lab4
- dfa.c
- Questions.txt
