||GH 118 /
or by arrangement
|Class Times||T/Th 12:30 - 1:45 PM|
This course covers the theory and practice of compiler
implementation. Topics include lexical analysis, parsing,
table management, type checking, intermediate representations, code
generation, and code optimization. In a sequence of projects,
students will implement a compiler for a simple procedural programming
Aho, Lam, Sethi, and Ullman: Compilers: Principles, Techniques, and Tools (2nd ed.)
Course meetings will be primarily lecture and discussion, with occasional lab activities.
In a semester-long series of projects, you will implement a compiler for a simple procedural programming language.
Two midterm exams will be given. A scheduled final exam will be given; see the Final Exam Schedule.
By the end of the course, you will be able to:
Grades are assigned on a 100-point scale:
Your overall grade for the course will be determined as follows:
Please check the course web page, http://faculty.ycp.edu/~dhovemey/spring2008/cs496/, regularly for important announcements.
Assignments and labs will be posted as zip files on the course
web page, http://faculty.ycp.edu/~dhovemey/spring2008/cs496/.
Assignments will be submitted using the server https://camel.ycp.edu:8443.
You will receive an email containing the username and password you
should use for this server.
The following policy pertains to homework and graded
All homework assignments and graded (individual) programming assignments are to be completed individually. I encourage you to discuss high level concepts with other students, but any work you submit must be yours alone.
Direct copying of code or other work from other students, web sites, or other sources is absolutely forbidden under any circumstances.
Any sources (books,
fellow students, etc.) that you consult in completing an assignment must be
acknowledged. In general, I strongly discourage
using any resource not explicitly listed in the course syllabus or on
the course web page. When you work on a programming
it must be your
program, not your adaptation of someone else's program.
Quizzes and exams must be completed individually.
Lab assignments are not graded---therefore, you may work with other students on them.
Any violation of the course's academic integrity policy will
referred to the Dean of Academic Affairs, and could have consequences
ranging from a 0 on an assignment to dismissal from the college.
Late assignments will be marked down 5% per day late. No credit is given for assignments turned in after grading has taken place.
No make-up exams will be given without approval of the instructor prior to class unless proof of extreme emergency or illness is provided.
I expect you to attend class and participate regularly in
discussions. If you miss a class, please notify me in
advance. You are responsible for all material covered in
regardless of whether or not you were present. If you attend
and participate in class regularly, you can expect to receive full
credit (5% of the course grade) for attendance and
Frequent absence and/or lack of participation in class discussions will
reduce the credit you receive for attendance and participation.
York College recognizes the importance of effective communication in all disciplines and careers. Therefore, students are expected to competently analyze, synthesize, organize, and articulate course material in papers, examinations and presentations. In addition, students should know and use communication skills current to their field of study, recognize the need for revision as part of their writing process, and employ standard conventions of English usage in both writing and speaking. Students may be asked to further revise assignments that do not demonstrate effective use of these communication skills.
This schedule may be subject to minor changes. Any changes will be announced in class and also be posted on the course web page.
|Week 1: Jan 21-Jan 24||No class Tuesday
|Week 2: Jan 28-Feb 1||Overview of compilation||Sect 2.1-2.8|
|Week 3: Feb 4-Feb 8||Lexical Analysis
Lexical analyzer generators
|Week 4: Feb 11-Feb 15||Parsing, Context-free grammars||Sect 4.1-4.3|
|Week 5: Feb 18-Feb 22||Top-down parsing
|Feb 25-Feb 29||Winter break, no classes|
|Week 6: Mar 3-Mar 7||Bottom-up parsing||Sect 4.5-4.7|
|Week 7: Mar 10-Mar 14||Parser generators||Sect 4.8-4.9|
|Week 8: Mar 17-Mar 21||No class Thursday||Intermediate representations||Sect 6.1-6.2|
|Mar 20-Mar 24||Spring break, no classes|
|Week 9: Mar 24-Mar 28||Intermediate code generation||Sect 6.3-6.5|
|Week 10: Mar 31-Apr 4||Intermediate code generation (cont'd)||Sect 6.6-6.9|
|Week 11: Apr 7-Apr 11||Low-level code generation overview||Sect 8.1-8.3|
|Week 12: Apr 14-Apr 18||Basic blocks, control-flow graphs, local optimization||Sect 8.4-8.5|
|Week 13: Apr 21-Apr 25||Code generation, peephole optimization||Sect 8.6-8.7|
|Week 14: Apr 28-May 2||Advanced optimization, dataflow analysis||Sect 9.1-9.2|
|Week 15: May 5-May 9||Course wrap-up|