Course web page: http://www.radford.edu/~nokie/classes/460
Content: This course introduces programming language translators (ie compilers). We will construct a working compiler that illustrates the fundamental concepts of real-world compilers, and we will see a particularly effective mixture of theory and practice because the theory strongly supports the creation of powerful compilation systems. We will cover much of chapters 1-13 of the text,
The source language is a subset of Ada, and for the intermediate and/or target languages, assembly languages for JVM byte code, LLVM, ARM, SPARC, and MIPS. Implementation will be in Java using parser generator tools such as ANTLR, Coco/R, CUP, JFlex (a lexer generator), and SableCC.
Course Outcomes Students who complete the course will be able to:
Text: Crafting a Compiler, Fischer, Cytron, LeBlanc, Addison Wesley, 2010 ISBN-10: 0-13-606705-0.
Companion Website: Some material is availble from the author's companion website. Another site of resources is provided by the publisher, for free if you purchase a new text. If you purchase an electronic copy of the text then you must also purchase access to the website. I don't know if we will use that material.
Some other good books:
Evaluation:
Per cent | Activity |
50 - 60 | Programs, Homework, and In-class Activities |
20 - 30 | One or two in-class tests |
20 | Comprehensive final exam: TBA |
100 | Total |
Attendance: Attendance is not required. You will find it much easier to make a good grade in the class if you come to class. You will not be allowed to make up any in-class activities that you miss. Good attendance and class participation will be to your benefit should your final grade for the course be on a borderline.
Laptops: Laptops and other electronic devices are not to be used during class unless you have permission. Research shows that multitasking hurts learning, and it is also distracting to others. Experience shows that electronic distractions typically lower a student's performance in the course by a full letter grade.
Program grading: My standard grading policy follows, but it may be modified some since you will be writing a compiler. Programs with compilation errors will normally receive a grade of 25 or less. Programs with runtime errors will normally receive a grade of 75 or less. Programs with incorrect results will normally receive a grade of 85 or less. Programs which do not use specified features will normally receive a grade of 85 or less.
Programming assignments should, of course, use appropriate style (e.g. use of white space, suitable variable names, and meaningful comments internal to your code and in headers to files and procedures). The documentation should include a header that includes your name, the date, a problem description, the language, the system, and instructions for compilation. Style is normally worth about 20%.
Program submission: Programs will be turned in using the submit command which will copy specified files to the submit directory. The submit command is being rewritten and so these instructions may change some. You should read the instructions for using submit. Note that submit is NOT the same as a dropbox. Remember that you can submit multiple times, but if you submit the same file twice, the later submission deletes any files with the same name that were submitted earlier. Remember that you must be on rucs for submit to copy the files to the correct directory. To access rucs, you should use a free secure shell client such as putty. Remember that you can also use submit to query the files that you have successfully submitted.
Homework problems: Any homework assignments will be graded on correctnesss and completeness, as well as neatness, clarity, and grammar.
Late policy: My standard late policy follows, but it may be modified some since you will be writing a compiler. Unless otherwise specified, late homework will not normally be accepted. Programming assignments will normally have a 10% per day late penalty, up until when the assignment is graded.
Exams: In exceptional circumstances I may give permission to miss an exam if you contact me in advance. In such cases the weight of your final will be increased. Otherwise a missed exam will be worth 0 points.
Honor Code: This class will be conducted in strict observance of the Honor Code. Please refer to your Student Handbook for details of expected behavior.
Of course, all work that you submit for grading must be your
own. In relation to programs specifically, you may discuss with
other students what task your program is supposed to accomplish.
However, you may not discuss how a program is to accomplish its task
with anyone except me or an authorized tutor. Similarly, you may discuss
with others
how a feature of a language works, but you must not let anyone write
code for your and you must not use someone else's solution as a basis
for your own.
If you receive any help of any kind on an assignment (such as using
a utility routine that you find in a book or on the web),
then the work that you turn in must give credit for that help.
Please be aware that if I suspect that you have violated the Honor
Code, then I will not hesitate to file charges with the Dean of Students
Office.