CST 320 Compiler Methods Dr. Sherry Yang PV 171 (541)
2 Course Description ä This course is designed to introduce the basic concepts of compiler design and operation. Topics include lexical and syntactical analysis, parsing, translation, semantic processing and code generation. In addition, students will implement a small compiler using development tools, lex and yacc. ä We might use other tools (Boost Spirit, Phoenix (Microsoft), Pargen, etc.)
Conventional Translator skeletal source program preprocessor source program library, relocatable object files compiler assembler target assembly program loader / linker relocatable machine code absolute machine code
Structure of Compiler Lexical Analyzer (scanner) Source Program Syntax Analysis (Parser) Tokens Semantic Analysis Syntactic Structure Optimizer Code Generator Intermediate Representation Target machine code Symbol Table
5 Evaluation Methods The final grade, which may range from A to F, is determined by a composite evaluation of the student's performance in: 2 Tests40% Labs, Homework & Project55% † In-Class Exercises (Attendance)5%
6 Grading Your grade will be calculated as follows:* 92%+ = A 83%+ = B 70%+ = C 60%+ = D 59%- = F * Class participation will be considered in evaluating "borderline" grades. † You must complete all labs and project in order to get a grade for the class. Incompletes will be given if you failed to turn in all labs and project. The highest grade that you can receive for the class once the incomplete has been removed is a B.
7 Textbook ä ä Optional / Recommended Text ä ä Parsons, Introduction to Compiler Construction ä ä References: ä ä Aho, Sethi, and Ullman, Compilers: Principles, Techniques, and Tools, Addison-Wesley, ä ä Fischer and LeBlanc, Crafting a Compiler with C, Benjamin Cummings, 1991.
8 Student Responsibilities ä Lecture and Lab Attendance: ä Students are expected to attend all class sessions and labs. If you know you will be absent on a certain day, please inform the instructor in advance so arrangements can be made to provide you with the material covered. Please make every effort to attend all class sessions. There will be no make up in-class exercises. ä CSET Rule: No Laptops are allowed during lecture. ä No cell phones & texting.
9 Student Responsibilities ä ä Tests and Final Exam: ä ä All tests are open book, open notes. No electronic devices are allowed. ä ä There will be no make up tests unless there is an emergency. If you miss a test for any reason, you can take an optional final to make it up. No excuses are necessary. ä ä In case of emergency, please contact Vice President of Student Affairs, Dr. Erin Foley’s office. She will inform all of your instructors.
10 ä Academic Dishonesty: ä No plagiarism or cheating is allowed in this class. Please refer to your student handbook regarding policies on academic dishonesty. A copy of the policy is posted on the class webpage. ä It is okay to get help on your assignments. Please acknowledge all source of help, including them in the program documentation as appropriate. Student Responsibilities
11 ä Homework & Labs: ä All labs are due via by midnight on the due date. You must follow the assignment submission guidelines below. Student Responsibilities
12 Lab Submission Guidelines ä All labs are due via by midnight on the due date. The instructor will send out an upon receiving your lab. If you do not receive an within 24 hours of submitting the lab, it is YOUR responsibility to contact the instructor by or phone. If you do not contact the instructor within 48 hours after the due date, the lab is considered late. ä There will be a 20% penalty per week for late labs. ä All labs and late labs must be turned in by Wednesday of Dead week to be graded.
13 Lab Submission Guidelines 1. Zip up all files required to build the lab. 2. Include a “Readme” file as appropriate. 3. The archive should also include any other deliverables as called out in the assignment write-up. 4. The archive will be attached to an with subject line:CST320 Lab #x – first name last name the archive to the archive to &
14 ä Any student with a disability who anticipates a need for accommodation in this course is encouraged to talk with the instructor about his/her needs as soon as possible.