University of Central Florida
Fall 2018
Section 1
Prerequisite(s): CDA 3103C and COP 3502C each with a grade of C (2.0) or better.
All assignment submissions must go through GitHub Classroom, which requires a free GitHub account.
Please provide the github ID via webcourses.
Note: all times are in UCF's Eastern time zone; all dates are implicitly the course semester's year.
Building codes can be found here: https://map.ucf.edu/locations/
MW 7:30PM-8:45PM CB2-O101
W 2:30PM NSC-108
W 3:30PM NSC-108
W 4:30PM CB1-320
Wednesday, December 5, 2018 7:00PM-9:50PM
https://exams.sdes.ucf.edu/2018/fall
Location is as determined by the University.
Paul Gazzillo
[email protected]
HEC-239
Office Hours:
- M 4:30PM-5:30PM
- W 4:30PM-6:00PM
- by appointment
Sharare Zehtabian
[email protected]
Necip Yildiran
[email protected]
HEC-213
Office Hours: MW 10.30AM-11.30AM
Design and development of assemblers, linkers, loaders, and compilers. Study memory hierarchy, program performance, and system level I/O.
This course is designed to provide a fundamental understanding of real and virtual machines as language processor and the implementation of compilers. We will study the processor as an instruction interpreter. Compilers, assemblers, linkers and loaders, and virtual machines will be presented as systems software for program development. An introduction to Operating system will be given.
Note: all times are in UCF's Eastern time zone.
See webcourse announcements for the GitHub classroom submission link for each assignment.
-
Assignment 1 PM/0 Due 09/16 11:59PM
-
Assignment 2 Lexer Due 10/07 11:59PM
-
Assignment 3 Parser/Code Gen Due 10/28 11:59PM
-
Assignment 4 Compiler Due 12/02 11:59PM
-
Midterm in class 10/10 7:30PM
-
Final Exam Wednesday, December 5, 2018 7:00PM-9:50PM
Bold dates are important dates that will not be moved earlier.
Weekly topics may shift earlier or later depending on the speed of lectures, student interest, etc, but the general flow of the topics will remain the same.
Introduction, Grading, Setting up Git
08/20 Intro
08/22 Processor
C and Makefiles:
https://www3.ntu.edu.sg/home/ehchua/programming/cpp/gcc_make.html
https://randu.org/tutorials/c/make.php
https://stackoverflow.com/questions/6666805/what-does-each-column-of-objdumps-symbol-table-mean
https://www.gnu.org/software/make/manual/html_node/Automatic-Variables.html
Git tutorials:
https://guides.github.com/activities/hello-world/
https://rogerdudler.github.io/git-guide/
https://www.atlassian.com/git/tutorials/using-branches
https://www.atlassian.com/git/tutorials/comparing-workflows
Virtual Machines as Instruction Interpreter
08/27 Processor
08/29 Virtual Machines
Subprogram Implementation
09/03 No Class (labor day)
09/05 Virtual Machines, Subprograms
Compilers and Interpreters
09/10 Compilers and Interpreters
09/12 Lexical Analysis
Reading:
Dragon book Ch3, 3.1-3.7 (inclusive).
Assignment 1 PM/0 Due 09/16 11:59PM
Lexical Analysis
09/17 Lexical Analysis
Reading:
Dragon book Ch3, 3.1-3.7 (inclusive).
More info on regular languages and finite automata:
09/19 Syntax Analysis
Reading:
Dragon book Ch4, 4.1,4.2
Grammars
09/24 Syntax Analysis
-
Need for associativity to resolve ambiguity (example in
python
interactive mode)>>> 100 * (float(29) / 100) 28.999999999999996 >>> (100 * float(29)) / 100 29.0
-
Reading: Dragon book 4.1-4.4 (inclusive).
-
Floating point rounding error: https://stackoverflow.com/questions/5997027/python-rounding-error-with-float-numbers
09/26 Syntax Analysis Parse Trees
- Reading: Dragon book 4.1-4.6,4.8 (inclusive).
- Intro to recursive descent: Dragon Book chapter 2
Parsing
10/01
- Reading: Dragon book 4.9 and (optionally) 4.7.
10/03
Assignment 2 Lexer Due 10/07 11:59PM
10/08 Review for the Midterm
10/10 Midterm
Midterm in class 10/10 7:30PM
Predictive Parsing
10/15
10/17
Code Generation
10/22
10/24
Predictive Parsing
10/29
10/31
Assignment 3 Parser/Code Gen Due 10/28 11:59PM
Assemblers
11/05
11/07
Loaders
11/12 No Class (Veteran's Day)
11/14
Processes
11/19
11/21
11/26 Review for the Final
11/28 Review for the Final
Assignment 4 Compiler Due 12/02 11:59PM
- 20% Midterm Exam: closed book, closed notes exam given in class
- 30% Final Exam: closed book, closed notes comprehensive exam given during final exam week. You must score at least 60% on this exam to pass the course
- 50% Programming project
- 15% Assignment 1 PM/0
- 5% Assignment 2 Lexer
- 5% Assignment 3 Parser/Code Gen
- 25% Assignment 4 Compiler
- Extra 7%: Participation, recitation attendance, quizzes. Completion of these tasks can add extra percentage points, e.g., if you receive an 86% average on the exams and project and 6% on the recitations and quizzes, your final score will be a 92%.
No late submissions for the programming project will be accepted except in accordance with University policy. However, the programming project is cumulative: assignments 2-4 each depend on the previous assignment and assignment 4 depends on all previous assignments. The assignment weights reflect this dependence.
Assignment 1:
- 5pts if it compiles and runs (even if no tests pass)
- or 3pt if there is substantial implementation effort but doesn't compile
- 5pts for the given test cases (e.g., .5pt for each case)
- 5pts for the secret test cases
The score is a weight average of the exams and programming project plus the extra points, i.e.,
(midterm * 20% + final * 30% + project * 50%) + extra
A >= 90%, B+ >= 87%, B >= 80%, C+ >= 77%, C >= 70%, D >= 60%, F < 60%.
The programming project consists in implementing a compiler for a tiny programming language. The compiler must generate code for a virtual machine that will run. The project will be divided in four modules:
- Virtual Machine implementation (PM/0)
- Lexer
- Parser/Code Generation
- Compiler
Details will be given out well before the due dates for each part of the project.
This project must be written in C (not C++) on a UNIX system. The standard for this class will be the Linux system in the main computer lab called Eustis. You are welcome to write and test code on some other system, if you wish, but it will be graded on Eustis and if it does not work there, it does not work. You will be given a Eustis account at the beginning of the semester, and instructions on how to access your account can be found on the Assignments section at the course's webpage.
Students may work alone on the programming project or with at most one other person for a maximum team size of two. Teams are created on GitHub classroom when accepting the assignment. If there is a need to change or dissolve a team, please talk to the instructor about
- Compilers: Principles, Techniques, & Tools, Second Edition by Alfred V. Aho, Monica S. Lam, Ravi Sethi, and Jeffrey D. Ullman. Addison Wesley, 2007
- Advanced Compiler Design and Implementation by Steven Muchnich. Morgan Kaufman, 1997
- Modern Compiler Implementation in C by Andrew Appel. Cambridge University Press, 1998
- Compiler Construction: Principles and Practice by Kenneth C. Louden, PWS, 1997
- Concepts of Programming Languages, 8th Edition by Robert W. Sebesta. Addison Wesley, 2010.
The Center for Academic Integrity (CAI) defines academic integrity as a commitment, even in the face of adversity, to five fundamental values: honesty, trust, fairness, respect, and responsibility. From these values flow principles of behavior that enable academic communities to translate ideals into action. http://academicintegrity.org/
UCF Creed: Integrity, scholarship, community, creativity, and excellence are the core values that guide our conduct, performance, and decisions.
-
Integrity: I will practice and defend academic and personal honesty.
-
Scholarship: I will cherish and honor learning as a fundamental purpose of my membership in the UCF community.
-
Community: I will promote an open and supportive campus environment by respecting the rights and contributions of every individual.
-
Creativity: I will use my talents to enrich the human experience.
-
Excellence: I will strive toward the highest standards of performance in any endeavor I undertake.
The following definitions of plagiarism and misuse of sources come from the Council of Writing Program Administrators http://wpacouncil.org/node/9 and have been adopted by UCF's Department of Writing & Rhetoric.
In an instructional setting, plagiarism occurs when a writer deliberately uses someone else's language, ideas, or other original (not common-knowledge) material without acknowledging its source. This definition applies to texts published in print or on-line, to manuscripts, and to the work of other student writers.
A student who attempts (even if clumsily) to identify and credit his or her source, but who misuses a specific citation format or incorrectly uses quotation marks or other forms of identifying material taken from other sources, has not plagiarized. Instead, such a student should be considered to have failed to cite and document sources appropriately.
UCF faculty members have a responsibility for your education and the value of a UCF degree, and so seek to prevent unethical behavior and when necessary respond to infringements of academic integrity. Penalties can include a failing grade in an assignment or in the course, suspension or expulsion from the university, and/or a "Z Designation" on a student's official transcript indicating academic dishonesty, where the final grade for this course will be preceded by the letter Z. For more information about the Z Designation, see http://goldenrule.sdes.ucf.edu/zgrade.
For more information about UCF's Rules of Conduct, see http://www.osc.sdes.ucf.edu/.
There are many fraudulent websites claiming to offer study aids to students but are actually cheat sites. They encourage students to upload course materials, such as test questions, individual assignments, and examples of graded material. Such materials are the intellectual property of instructors, the university, or publishers and may not be distributed without prior authorization. Students who engage in such activity are in violation of academic conduct standards and may face penalties.
Faculty have reported errors in class notes being sold by third parties, and the errors may be contributing to higher failure rates in some classes. The following is a statement appropriate for distribution to your classes or for inclusion on your syllabus:
Third parties may be selling class notes from this class without my authorization. Please be aware that such class materials may contain errors, which could affect your performance or grade. Use these materials at your own risk.
Outside of the notetaking and recording services offered by Student Accessibility Services, the creation of an audio or video recording of all or part of a class for personal use is allowed only with the advance and explicit written consent of the instructor. Such recordings are only acceptable in the context of personal, private studying and notetaking and are not authorized to be shared with anyone without the separate written approval of the instructor.
The University of Central Florida is committed to providing access and inclusion for all persons with disabilities. This syllabus is available in alternate formats upon request. Students with disabilities who need specific access in this course, such as accommodations, should contact the professor as soon as possible to discuss various access options. Students should also connect with Student Accessibility Services (Ferrell Commons, 7F, Room 185, [email protected], phone (407) 823-2371). Through Student Accessibility Services, a Course Accessibility Letter may be created and sent to professors, which informs faculty of potential access and accommodations that might be reasonable.
Emergencies on campus are rare, but if one should arise in our class, we will all need to work together. Everyone should be aware of the surroundings and familiar with some basic safety and security concepts.
-
In case of an emergency, dial 911 for assistance.
-
Every UCF classroom contains an emergency procedure guide posted on a wall near the door. Please make a note of the guide's physical location and consider reviewing the online version at http://emergency.ucf.edu/emergency_guide.html.
-
Familiarize yourself with evacuation routes from each of your classrooms and have a plan for finding safety in case of an emergency. (Insert class-specific details if appropriate)
-
If there is a medical emergency during class, we may need to access a first aid kit or AED (Automated External Defibrillator). To learn where those items are located in this building, see http://www.ehs.ucf.edu/AEDlocations-UCF (click on link from menu on left). (insert class specific information if appropriate)
-
To stay informed about emergency situations, sign up to receive UCF text alerts by going to my.ucf.edu and logging in. Click on "Student Self Service" located on the left side of the screen in the tool bar, scroll down to the blue "Personal Information" heading on your Student Center screen, click on "UCF Alert", fill out the information, including your e-mail address, cell phone number, and cell phone provider, click "Apply" to save the changes, and then click "OK."
-
If you have a special need related to emergency situations, please speak with me during office hours.
-
Consider viewing this video (https://youtu.be/NIKYajEx4pk) about how to manage an active shooter situation on campus or elsewhere.
If you are a deployed active duty military student and feel that you may need a special accommodation due to that unique status, please contact your instructor to discuss your circumstances.