Principles of Compiler Design Notes Anna University – CS2352 PCD Notes

Tags : Anna University, CSE, Notes, , , , , , .

Principles of Compiler Design Notes Anna University- CS2352 PCD Lecture, Subject Notes for CSE Sixth (6th) Sem

download Principles of Compiler Design Anna University Notes – CS2352 PCD Lecture, Subject Notes for CSE Sixth (6th) Semester Students. CS2352 Principles of Compiler Design Notes Anna University and content of CS2532 PCD notes is Provided below.

Subjects : Principles of Compiler Design (PCD)

Subject Code : CS2352

Department : CSE

Semester : 6th Sem

University : Anna University, Chennai

CS2352 Principles of Compiler Design Anna University Notes download

Download (PDF, 1.41MB)

Content of CS2352 PCD Notes:

UNIT I LEXICAL ANALYSIS
Introduction to Compiling- Compilers-Analysis of the source program-The phases-
Cousins-The grouping of phases-Compiler construction tools. The role of the lexical
analyzer- Input buffering-Specification of tokens-Recognition of tokens-A language for
specifying lexical analyzer.
UNIT II SYNTAX ANALYSIS and RUN-TIME ENVIRONMENTS
Syntax Analysis- The role of the parser-Context-free grammars-Writing a grammar-Topdown
parsing-Bottom-up Parsing-LR parsers-Constructing an SLR(1) parsing table.
Type Checking- Type Systems-Specification of a simple type checker. Run-Time
Environments-Source language issues-Storage organization-Storage-allocation
strategies.
UNIT III INTERMEDIATE CODE GENERATION
Intermediate languages-Declarations-Assignment statements – Boolean expressions-
Case statements- Backpatching-Procedure calls.
UNIT IV CODE GENERATION
Issues in the design of a code generator- The target machine-Run-time storage
management-Basic blocks and flow graphs- Next-use information-A simple code
generator-Register allocation and assignment-The dag representation of basic blocks -
Generating code from dags.
UNIT V CODE OPTIMIZATION
Introduction-The principle sources of optimization-Peephole optimization- Optimization of
basic blocks-Loops in flow graphs- Introduction to global data-flow analysis-Code
improving transformations.

TEXT BOOK:
1. Alfred V. Aho, Ravi Sethi Jeffrey D. Ullman, “Compilers- Principles, Techniques, and
Tools”, Pearson Education Asia, 2007.
REFERENCES:
1. David Galles, “Modern Compiler Design”, Pearson Education Asia, 2007
2. Steven S. Muchnick, “Advanced Compiler Design & Implementation”, Morgan
Kaufmann Pulishers, 2000.
3. C. N. Fisher and R. J. LeBlanc “Crafting a Compiler with C”, Pearson Education,
2000.

CS2352 Principles of Compiler Design Notes  anna university  Subject Notes for CSE Sixth Semester has been provided above. you can download Anna University CS2352CS2352 principle of Compiler Design notes PCD  notes by click on above link. If you have any problem in downloading , or if u want any more study materials related to this topic Kindly comment below.