Professional Documents
Culture Documents
Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Course Outline
Fall 2020
Class Sessions:
Section: A, B, C, D
Page 1 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
The main objective of this course is to gain an in-depth understanding of the above process.
Most complex software systems are not monolithic; they are programmable using special-purpose
languages. An understanding of the language translation process thus plays an important role in the
design of real-life systems.
Students will become familiar with the principles of designing a compiler.
Course Components
Page 2 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Three Address Code in Intermediate-Code Generation
Types & Declarations in Intermediate-Code Generation
Introduction to Run-Time Environments
Stack Allocation of Space in Run-Time Environments
Issues in Design of a Code Generation
The Target language in Code Generation
Basic Blocks & Flow Graphs of Code Generation
Intended Student Learning Outcomes (SLOs) and Program Outcomes (POs) of the Course:
At the end of the course, each student should be able to:
Page 3 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Text Books
Reference Books
Practical Aide:
Code block, version 17.12
Evaluation:
A minimum of 3 announced assignments and quizzes, attendance, class participation and exams will
be the major determinants of students’ grades:
Grading Policy:
Grade Marks
A >=90
B+ 87=<89
B 84=<86
B- 80=<83
C+ 77=<79
C 74=<76
C- 70=<73
D+ 65=<69
Page 4 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
D 60=<64
F 0<60
Dress and Behavior Code: All students must strictly follow the Dress and Behavior Code (DBC) of
IUBAT. The student not following proper dress code will be warned first and habitual DBC breaker
may be denied entry/ ejected from the classroom and thus will be counted as absent.
First Term and Mid-term Exam: First Term and Mid-term Exams will be held in the class on
scheduled/announced dates. The scheduled dates of the first term and mid-term exams would not be
changed under any circumstances. All topics covered until the end of the week before the exam will
be included. Different sets of question papers having an equal level of difficulty and standard will be
set. These question paper will include both subjective and objective type questions.
Marked exam scripts of the first term and mid-term exam will be returned to the students during the
class (usually next week after the exam). If any student is unable to collect his/her script on that day
due to absence, he/she must collect it within one week from the instructor's room. After one (1) week,
the instructor will not be responsible for the loss of the script.
Missed Exam: There will be no make-up exam if anyone intentionally misses first and midterm
exam without any valid and legitimate reason. Absence in the exams will be regarded as absent and
Zero (0) marks will be applied. Notifying the instructor before the exam is a must if a student misses
any exam for reasons beyond his/her control. ‘I’ grade will not be given without any prior notification
to the instructor. In extreme circumstances, if the student cannot inform earlier, he/she must inform
the instructor within three (3) days of the exam.
Final Exam: Final exam will cover the entire course syllabus. The exam will be all-inclusive at a
location and time determined by the university. The final examination is for evaluation purposes
only, and the exam scripts will not be returned to the students for review after it is marked. The final
exam question paper will include subjective type questions only.
Creativity will not be suppressed. Writing in your own words is definitely welcomed as long as the
provided information is scientifically correct, grammatically sound, and to the point.
Page 5 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
No extra marks will be given for what was not asked in the question paper. Marks will be deducted
for wrong scientific units. No partial marks will be given for the following cases:
a. Misspellings of engineering terms, contributor’s name or universally accepted nomenclature
b. Wrong formula and invalid solution processes/steps of mathematical problems
c. Unintelligible writing (not understandable), sentence does not make any sense, off-topic
writing (not relevant to the topic)
Review of the marks: Appeals for reviewing marks of the first term and mid-term exams must be
made within three (3) days from the day of supplying answer scripts. After submission of grades in
the university automation server, any appeal for reviewing marks will be rejected. Student can apply
through the registry for final grade review if the student is not satisfied with his/her final grade.
Class Participation: All students are expected to actively participate in the class for ensuring
effective and interactive teaching-learning process. Class participation includes asking questions,
expressing ideas, contributing to the discussion and giving insightful comments relevant to the topic.
It is also further expected that students will adequately prepare themselves by studying the topic
beforehand the scheduled classes and they will participate in them when appropriate. Another way of
participating in the class is to play the role of convener, rapporteur, course leader and participants.
Students should follow the instructor’s briefing in this regard.
In-class Exercises: Students are expected to follow the instructions attentively and thoroughly
understand the solution process of a discussed mathematical problem. A similar mathematical
problem will be provided to the students for solving in the class within a prescribed time. Discussions
are allowed. Students will show the answer to the instructor after solving.
Unannounced Quizzes: An unannounced quiz will be either an oral exam on previously discussed
topic or an open book exam. Students are therefore advised to always bring at least five blank pages
with them and text book in the class.
Page 6 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
‘I’ Grade Policy: The instructor cannot assign ‘I' Grade on the basis of any irrational request or
excuse made by a student. The grade “I” (Incomplete grade) may be assigned by the instructor at the
end of the semester to designate incomplete work in a course. It should be used only when a student
is unable to complete requirements of the course because of illness, hardship or death in the
immediate family. Incomplete (I) will only be given if the student has already substantially completed
the major requirements of the course such as required attendance, satisfactory class participation,
assignment completion, taking the quiz, and obtaining of the good grade in the first and midterm
exams. The grade “I” must be removed as soon as possible but no later than 3 weeks from the
beginning of the next semester. At the end of deadline, the faculty must submit the final grade or this
is automatically converted into “F” grade.
Attendance policy: Attendance to all lectures is mandatory. An instructor may assign a final grade of
“F” in the course to a student who fails to meet the requirements. Only three absences in a course
with acceptable reasons may be excused by the instructor in a semester. Permission of the Dean is
required to remain absent in three or more consecutive classes for reasons beyond control (eg. illness,
hardship or death in the immediate family) of the student. Any student remaining absent in any class
of a course without permission will be served with a notice of warning. Unexcused absences will lead
to reduced course grade, suspension from the course or dismissal of the student from the course.
Lecture Notes and Handouts: Lecture notes and PowerPoint slides made by the instructor will not
be supplied to the students. Students are expected to study the textbook for developing in-depth
understanding of the topic. Students may additionally follow reference texts along with any credible
and reliable source of information. Students are also advised not to follow random Google search
results and unprofessional WebPages. ‘Problem Sets’ for assignment and handouts on unavailable
topics (topics not available in the textbook) will be provided only.
Page 7 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Optimizing for parallelism and locality)
Lecture Schedule:
Date Day Lecture Out Come/ Material Covered Assignment Due Date
11-Oct-2020 Lecture 1 Part-1
Introduction of Course and
The Structure of a Compiler
Sunday
13-Oct-2020 Lecture 2
Tuesday do
14-Oct-2020 Wednes Lecture 3
day do
14-Oct-2020 Wednes Lecture 4 20-Oct-2020
Assisgnemt-1
day do
15-Oct-2020 Lecture 5
Thursday The Role of Lexical Analysis
18-Oct-2020 Lecture 6 Input Buffering of Lexical
Sunday Analysis
20-Oct-2020 Lecture 7 Recognitions of Tokens in Lexical
Tuesday Analysis
21-Oct-2020 Wednes Lecture 8
Recognitions of Tokens in Lexical
day Analysis
21-Oct-2020 Wednes Lecture 9
Quiz Test
day CT/Assignment/Quiz
22-Oct-2020 Lecture 10 Assisgnemt-2 28-Oct-2020
Thursday Introduction to Syntax Analysis
25-Oct-2020 Lecture 11 Context Free Grammars in Syntax
Sunday Analysis
27-Oct-2020 Lecture 12
Tuesday Writing Grammars in Syntax Analysis
28-Oct-2020 Wednes Lecture 13
Assisgnemt-3
day Writing Grammars in Syntax Analysis
28-Oct-2020 Wednes Lecture 14
day Review class
29-Oct-2020 Lecture 15
Thursday Review class
First Term Examination begins from November 03 and must end by November10, 2020(First
term exam will be announced by registry ). The faculty is to designate one class hour for the
examination & regular classes to continue during the week.
Page 8 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
01-Nov-2020 Lecture 16
Sunday Parsing in Syntax Analysis
03-Nov-2020 Lecture 17
Tuesday Syntax-Directed Translation
04-Nov-2020 Wednes Lecture 18
Dependency
day Graphs Syntax-Directed Translation
04-Nov-2020 Wednes Lecture 19 10-Nov-2020
Attributes in Syntax-Directed
Assisgnemt-4
day Translation
05-Nov-2020 Lecture 20 CT/Assignment/Quiz
Thursday
08-Nov-2020 Lecture 21 Holiday
Sunday
10-Nov-2020 Lecture 22 Three Address Code in Intermediate-
Tuesday Code Generation
11-Nov-2020 Wednes Lecture 23
Types & Declarations in Intermediate-
day Code Generation
11-Nov-2020 Wednes Lecture 24
Types & Declarations in Intermediate-
day Code Generation
12-Nov-2020 Lecture 25 Revision of syllabus: Mid Term
Thursday Materials
15-Nov-2020 Lecture 26
Sunday Mid Term Examination
17-Nov-2020 Lecture 27 Introduction to Run-Time
Environments
Tuesday
18-Nov-2020 Lecture 28 Stack Allocation of Space in Run- 24-Nov-2020
Wednes
Time Environments Assisgnemt-5
day
18-Nov-2020 Lecture 29 Stack Allocation of Space in Run-
Wednes
Time Environments
day
19-Nov-2020 Thursday Lecture 30
Mid Term Examination begins from November 22 and must end by November 29, 2020( Mid
term exam will be announced by registry ). The faculty is to designate one class hour for the
examination & regular classes to continue during the week.
22-Nov-2020 Lecture 31 Stack Allocation of Space in Run-
Time Environments
Sunday
24-Nov-2020 Lecture 32 Issues in Design of a Code Generation
Tuesday
25-Nov-2020 Lecture 33 The Target language in Code
Wednes
Generation
day
25-Nov-2020 Wednes Lecture 34
Basic Blocks & Flow Graphs of Code
day Generation
26-Nov-2020 Lecture 35 Basic Blocks & Flow Graphs of Code
Thursday Generation
29-Nov-2020 Lecture 36
sunday Quiz
06-Dec-2020 Lecture 37
Sunday Presentation on Related Subject
Page 9 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Biography of Instructor
Md. Alomgir Hossain
Md. Alomgir Hossain, he was born in Bangladesh. He completed diploma in computer technology
from kushtia Polytechnic Institute under (BTEB), Year of 2006. After completing diploma
engineering, He received BSc. in CSE degree from IUBAT, in year of 2011.Then he joined as an
Instructor Dept. of CSE at Primeasia University, Banani, Dhaka, since February 8, 2012 to 2013. At
the same time he completed Master of Science in Computer Science from Jahangirnagar University,
in year of 2013. Hossain gathered two years teaching experience from Primeasia university. After he
joined as a faculty member, Dept. of CSE at Shanto Mariam university of creative technology, since
January 2014 to august 2014. Also he has been enrolled in PhD Program at DUET (Dhaka
University of Engineering and Technology, Gazipur, Dhaka) Under Dept. of Computer Science and
Engineering in this year (Session 2014-2015). His main areas of research interest are education and
research. Major interest areas are Digital image processing, face pattern recognition. Now he is
currently as an Assistant Professor, Dept. of CSE, at IUBAT, since 13th September 2014.
Page 10 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
Room: 514 Email: alomgir.hossain@iubat.edu
Extension: 504
Contact: 01718735128
Page 11 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
PO#10 Communication
-An ability to communicate effectively on complex engineering activities with the
engineering community and with computing society at large, such as being able to
comprehend and write effective reports and design documentation, make effective
presentations, and give and receive clear instructions.
Page 12 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
C2-Understanding: Comprehending the meaning, translation, interpolation, and interpretation of instructions and
problems. State a problem in one's own words.
C3-Applying: Use a concept in a new situation or unprompted use of an abstraction. Applies what was learned in the
classroom into novel situations in the work place.
C4-Analyzing: Separates material or concepts into component parts so that its organizational structure may be
understood. Distinguishes between facts and inferences.
Page 13 of 14
Founded 1991 by Md. Alimullah Miyan
4 Embankment Drive Road, Sector 10, Uttara Model Town, Dhaka 1230, Bangladesh
Phone: 896 3523-7, 01714 014933, 892 3469-70, 891 8412, Fax: 892 2625, info@iubat.edu www.iubat.edu
emphasize creativity based upon highly developed skills.
Prepared by
Md. Alomgir Hossain
Assistant Professor
Department of Computer Science and Engineering
IUBAT—International University of Business Agriculture and Technology
4 Embankment Drive Road, Sector 10
Uttara Model Town, Dhaka 1230, Bangladesh. www.iubat.edu,E-mail:
alomgir.hossain@iubat.edu, Phone:+88028963523-27,Ext. 504
Page 14 of 14