Compiler Design CSE401 Compiler Design Course Conducted by
Compiler Design
CSE-401 Compiler Design • Course Conducted by – Md. Solaiman Mia – Assistant Professor, Dept. of CSE, DIU – Email: solaiman. cse@diu-bd. net
Grading Policy • • 50% - Final Examination 20% - Mid-term Examination 10% - Class Test 5% - Assignment 5% - Presentation 5% - Attendance 5% - Behavior
Playing it Safe in CSE-401 If you follow these 4 simple rules during the class, you'll make sure that you do well in the course: 1. Attend every lecture. 2. Read the course material (textbook sections assigned + slides). 3. Submit everything (Assignments, Presentations, Exams) on time - don't be late. 4. Don't cheat.
Pre-requisite Courses • Strong programming background in C, C++ or Java • Some background on Automata Theory (NFA, DFA, CFG) is recommended…… ……not mandatory • Assembly Language Programming and Machine Architecture
Recommended Books Aho, Sethi, Ullman: Compilers: Principles, Techniques and Tools. Aho et al. is excellent in theoretical background and will be followed closely.
Recommended Books Aho, Lam, Sethi, Ullman: Compilers: Principles, Techniques, and Tools (2 nd Edition).
What is this Course About? 1. Let us say you write a program in your favorite language. vi hello. c 2. Compile it. gcc hello. c 3. You get an executable. a. out What happens between steps 2 and 3?
Course Objective • To learn the process of translating a modern highlevel language to executable code. – Learn the fundamental techniques from lectures, text book. – Apply these techniques in practice to construct a compiler for toy programming language.
The Course Covers • • • Lexical Analysis Syntax Analysis Semantic Analysis Runtime environments Code Generation Code Optimization
- Slides: 10