Compiler Design (IT-6004) - B.E RGPV CBCS & CBGS Scheme Notes -->
Compiler Design (IT-6004)
 RGPV notes CBGS Bachelor of engineering

rgpv bhopal, diploma, rgpv syllabus, rgpv time table, how to get transcript from rgpv, rgpvonline,rgpv question paper, rgpv online question paper, rgpv admit card, rgpv papers, rgpv scheme

RGPV notes CBGS Bachelor of engineering

Syllabus

UNIT 1:
Introduction to Compiler, analysis of source program, phases and passes, Bootstrapping, lexical analyzers, data structures in compilation – LEX: lexical analyzer generator, Input buffering, Specification and Recognition of tokens, YACC, The syntactic specification of programming languages: Context free grammars, derivation and parse trees, capabilities of CFG.

UNIT 2:
Syntax Analysis: working of Parser, Top down parsing, Bottom-up parsing, Operator precedence parsing, predictive parsers, LR parsers (SLR, Canonical LR, LALR), constructing SLR parsing tables, constructing Canonical LR parsing tables, Constructing LALR parsing tables, using ambiguous grammars, an automatic parser generator.

UNIT 3:
Syntax Directed Translation: Definitions, Inherited Attributes, L-attributed definitions, S-attributed definitions, Dependency graph, Construction of syntax trees, Top down translation, postfix notation, bottom up evaluation.

UNIT 4:
Intermediate Code Generation: Three address code, quadruple & triples, translation of assignment statements, Boolean expression and control structures, Backpatching, Run Time Memory Management: Static and Dynamic storage allocation, stack based memory allocation schemes, Symbol Table management.

UNIT 5:
Code Optimization and Generation: organization of code optimizer, basic blocks and flow graphs, DAG representation of basic blocks, loops in flow graph, peephole optimization, Basic of block optimization.


NOTES


Books Recommended

1. A. V. Aho, R. Sethi & J. D. Ullman, Compilers: Principles, Techniques and Tools, Pearson Ed.
2. Alfred V. Aho, Jeffrey D. Ullman, Principles of Compiler Design, Narosa Publishing House.
2. Ronald Mak, Writing Compilers and Interpreters, Wiley IndiacEdition.
3. Louden, Compiler Construction, Cengage learning.


List of Experiments:

1. Study of LEX tool and its installation in LINUX.
2. Write a program to identify string using lex tool.
3. Write a program to find keyword and identifiers using lex tool.
4. Write a program to count all character using lex tool.
5. Design a lexical analyzer for given language and the lexical analyzer should ignore redundant spaces, tabs and new lines.
6. Write a program to calculate First and Follow of a Grammar.
7. Write a program to construct LL(1) parser for given language.
8. Write a program to construct an operator precedence parser for a given language.
9. Write a program to construct a recursive descent parser for an expression.
10. Study of YACC tool and installation in Linux operating system.
11. Write a program for implementing a calculator for computing the given expression using semantic rules of the YACC tool.
12. Write a program for implementing Shift Reduce parsing and LR parsing.
13. Write a program for generating various intermediate code forms
i) Three address code
ii) Polish notation.


You May Also Like

Follow Author Here:

Services

COMPLETELY FREE !!!

Yup, everything is free....

NO REGISTRATION REQUIRED

User doesn't have to register for accessing the files, all the files are free & universally accessible without any condition or restriction.

RESPONSIVE DESIGN & USER-FRIENDLY

Our webpages are responsive & user-friendly, which means it will automatically adjust according to your device screen size and you will find stuff without ant hustle.

DIRECT DOWNLOAD LINKS WITH HIGN SPEED

All the files are uploaded on our super-fast servers so that they can be easily downloaded with high speed.

NEW PROJECTS

For providing a better experience to our users we are developing our Android application, the application will have a lot of awesome features so stay tuned ;).

AWESOME SUPPORT TEAM

Our AI-powered Chatbots are always here to help you so, feel free to ask any question or report if you face any problem. Our team also monitors all chatbots traffic & they will contact you if chatbot fails to help.

Contact Us