MAKAUT syllabus for B.Tech CSE, unit-wise
B.Tech CSE / IT · Semester 5 (3rd year)

MAKAUT PCC-CS501 Compiler Design syllabus

Compiler Design (PCC-CS501) is a 3-credit theory paper in the fifth semester of the MAKAUT B.Tech CSE and IT programme. The paper runs from the phases of a compiler through lexical analysis, parsing, syntax directed translation, type checking, run time environments, intermediate code, optimisation and code generation.

Paper code
PCC-CS501
Credits
3
Total lecture hours
45

Unit-wise syllabus

Unit 1: Introduction to compiling

3 lecture hours

Compilers, analysis of the source program, the phases of the compiler, cousins of the compiler.

Unit 2: Lexical analysis

6 lecture hours

The role of the lexical analyzer, tokens, patterns, lexemes, input buffering, specification of a token, recognition of tokens, finite automata, regular expression to NFA and DFA, design of a lexical analyzer generator (Lex).

Unit 3: Syntax analysis

9 lecture hours

The role of a parser, context free grammars, writing a grammar, top down parsing, non recursive predictive parsing (LL), bottom up parsing, handles, viable prefixes, operator precedence parsing, LR parsers (SLR, LALR), parser generators (YACC), error recovery strategies.

Unit 4: Syntax directed translation

5 lecture hours

Syntax directed definitions, construction of syntax trees, bottom-up evaluation of S attributed definitions, L attributed definitions, bottom-up evaluation of inherited attributes.

Unit 5: Type checking

4 lecture hours

Type systems, specification of a simple type checker, equivalence of type expressions, type conversions.

Unit 6: Run time environments

5 lecture hours

Source language issues (activation trees, control stack, scope of declaration, binding of names), storage organization, activation records, storage allocation strategies, parameter passing (call by value, call by reference, copy restore, call by name), symbol tables, dynamic storage allocation.

Unit 7: Intermediate code generation

4 lecture hours

Intermediate languages, graphical representation, three-address code, implementation of three address statements (quadruples, triples, indirect triples).

Unit 8: Code optimization

5 lecture hours

Basic blocks and flow graphs, transformation of basic blocks, DAG representation of basic blocks, principal sources of optimization, loops in flow graphs, peephole optimization.

Unit 9: Code generation

4 lecture hours

Issues in the design of a code generator, a simple code generator, register allocation and assignment.

Marks distribution

Mid semester exam15 marks
Assignment and quiz10 marks
Attendance5 marks
End semester exam70 marks
Maximum marks100
Contact hours3 lectures per week, no tutorial, no practical

Course outcomes

Recommended books

PCC-CS501 previous year questions

We are collecting and checking the MAKAUT question papers for PCC-CS501. They will be listed here paper by paper as they are verified.

Learn Compiler Design with Atifay

Our recorded course follows this exact unit order, with notes you keep and lectures you can rewatch before the semester exam.

See the course

Syllabus text follows the official MAKAUT AICTE scheme published at makautexam.net. Check with your department for the scheme that applies to your batch.

Other MAKAUT papers