Week 1 Lec 1 CC
Week 1 Lec 1 CC
Week 1 Lec 1 CC
Prepared by:
Text Book
Compilers: Principles, Techniques, and Tools By Alfred V. Aho, Ravi Sethi, Jeffrey D. Ullman,
Contributor Jeffrey D. Ullman, Addison-Wesley Pub. Co., 2nd edition, 2006
Reference Books
Modern Compiler Design, by Dick Grune, Henri E. Bal, Ceriel J. H. Jacobs, Koen G. Langendoen,
John Wiley, 2000.
Modern Compiler Implementation in C, by Andrew W. Appel, Maia Ginsburg, Contributor Maia
Ginsburg, Cambridge University Press, 2004.
Modern Compiler Design by Dick Grune, Henri E. Bal, Ceriel J. H. Jacobs, Koen G. Langendoen,
2003, John Wiley & Sons.
Theory of Automata
Following contents will be covered throughout the semester in week wise lectures:
Introduction to interpreter and compiler
Compiler techniques and methodology
Organization of compilers
Lexical and syntax analysis
Parsing techniques
Types of parsers
top-down parsing
bottom-up parsing
Type checking
Semantic analyzer
Object code generation and optimization, detection and recovery from errors.
Lahore Garrison University
9
Software Use
C, C++, C#
JAVA
Lectures
Written Assignments
Semester Project
Presentations
Sessional
Home Assignments
Quizzes
Project
Presentations
Mid Exam
Final Exam
Grading Policy
25 Mid
Final
Sessional
50
Compiler
History of Compiler
Why we study Compiler?
Understanding related
Compiler and its importance
Not exactly known the date but early 1950’s is assumed to be start
of appearance of compilers.
Mainly used for translating arithmetic formulas into machine
language.
1952 (Linker/Loader) by Grace Hopper for A-0 Programming
languages.
1957 first FORTRAN compiler launched that is consider to be started
in 1954 by John Backus & team
1960--- COBOL compiler for multiple architecture
1962--- First self-hosting compiler for LISP
Curiosity
Better understanding of programming language concepts
Wide applicability
Transforming ‘data’ is very common.
Very useful data structure and algorithms
Practical Application of “Theory”
Q&A
Compilers: Principles, Techniques, and Tools By Alfred V. Aho, Ravi Sethi, Jeffrey D.
Ullman, Contributor Jeffrey D. Ullman, Addison-Wesley Pub. Co., 2nd edition, 2006