--Your friends at LectureNotes

Compiler Design

by Sheryl Bhatnagar
Type: NoteCourse: B.Tech Specialization: Computer Science EngineeringDownloads: 41Views: 1169Uploaded: 4 months agoAdd to Favourite

Share it with your friends

Suggested Materials

Leave your Comments


Sheryl Bhatnagar
Sheryl Bhatnagar
Principles of Compiler Design ITY-308 Instructor Raghavender Reddy Peddakapu prr712@gmail.com 9441762630
Principles of Compiler Design  Unit – I ➢ Analysis of the Source Program, Phases of a Compiler, ➢ Compiler Construction Tools, Lexical Analysis  Unit – II ➢ Parser, Grammar, Context-Free Grammar, Top-Down Parsing, Bottom-Up Parsing  Unit – III ➢ Intermediate Languages  Unit – IV ➢ Code Generation  Unit – V ➢ Code Optimization and Run-Time Environments  Reference Book: ➢ Alfred Aho, Ravi Sethi, Jeffrey D Ullman, “Compilers Principles, Techniques and Tools”, Pearson Education, India, 2/e.
Unit – I ➢Compilers ▪ Analysis of the Source Program ▪ Phases of a Compiler ▪ Cousins of the Compiler ▪ Grouping of Phases ▪ Compiler Construction Tools ➢Lexical Analysis ▪ Role of Lexical Analyzer ▪ Input Buffering ▪ Specification of Tokens
Introduction ▪ Why we need to learn it? ➢ May never write a full compiler ➢ But the techniques we learn is useful in many tasks ✓ Write interpreters for a scripting language ✓ Validating forms and so on… ▪ Compiler ➢ A program that translates source code into object code ➢ The total programming code is compiled at once and all the errors are displayed. ▪ Interpreter ➢ It goes on compiling only one line every time. ➢ If any error is encountered in any line, the control stops and displays the error. ➢ Once the error is rectified and compiled again, it moves to the next line and so on.

Lecture Notes