CS3501Unit-wise·3 papers compared
Anna University · Regulation 2021
CS 3501 Compiler Design question papers
CS3501 Compiler Design previous year question papers from Anna University (Regulation 2021), with the full syllabus. Read online or download the PDF.
- Fifth semester
- Core
- L T P C: 3 0 2 4
- 3 papers
CS3501 exam kitRepeated questions + all papers, 1 PDF
Question papers
CS3501Nov/Dec 2024·QP 40926
November/December 2024
CS3501Apr/May 2024·QP 50906
April/May 2024
CS3501Nov/Dec 2023·QP 20873
November/December 2023
Syllabus
1Introduction to Compilers & Lexical Analysis8 hours
Introduction · Translators · Compilation and Interpretation · Language processors · The Phases of Compiler · Lexical Analysis · Role of Lexical Analyzer · Input Buffering · Specification of Tokens · Recognition of Tokens · Finite Automata · Regular Expressions to Automata NFA · DFA · Minimizing DFA · Language for Specifying Lexical Analyzers · Lex tool
2Syntax Analysis11 hours
Role of Parser · Grammars · Context-free grammars · Writing a grammar Top Down Parsing · General Strategies · Recursive Descent Parser Predictive Parser · LL(1) · Parser · Shift Reduce Parser · LR Parser · LR (0)Item Construction of SLR Parsing Table · Introduction to LALR Parser · Error Handling and Recovery in Syntax Analyzer · YACC tool · Design of a syntax Analyzer for a Sample Language
3Syntax Directed Translation & Intermediate Code Generation9 hours
Syntax directed Definitions · Construction of Syntax Tree · Bottom-up Evaluation of S-Attribute Definitions · Design of predictive translator · Type Systems · Specification of a simple type Checker · Equivalence of Type Expressions · Type Conversions · Intermediate Languages: Syntax Tree · Three Address Code · Types and Declarations · Translation of Expressions · Type Checking · Back patching
4Run-Time Environment and Code Generation9 hours
Runtime Environments · source language issues · Storage organization · Storage Allocation Strategies: Static · Stack and Heap allocation · Parameter Passing · Symbol Tables · Dynamic Storage Allocation · Issues in the Design of a code generator · Basic Blocks and Flow graphs · Design of a simple Code Generator · Optimal Code Generation for Expressions · Dynamic Programming Code Generation
5Code Optimization8 hours
Principal Sources of Optimization · Peep-hole optimization · DAG · Optimization of Basic Blocks · Global Data Flow Analysis · Efficient Data Flow Algorithm · Recent trends in Compiler Design