Compiler Design
Spring 2024 @ NYCU with Prof. Yi-Ping You
Thanks and Farewell
Dear Students,
As we wrap up our adventure through the “Compiler Design” course, we, the TAs, want to thank you all for your active participation and enthusiasm.
Compiler design is a challenging field, and we deeply appreciate the effort and dedication each of you has shown in mastering the concepts. Your engagement, insightful questions, and valuable feedback have been instrumental in shaping and enhancing the course for everyone.
We also recognize some familiar faces from the previous semester. We hope you feel that the course has improved and that you have learned something new this semester.
Throughout this semester, we have delved into the complexities of compiler design together, and your unwavering commitment has been truly inspiring. We, as TAs, have been honored to guide and support you on this academic adventure. 🥰
As we come to the end of this semester, we say farewell with a sense of pride in what you’ve accomplished. We hope that the knowledge and skills you’ve acquired will serve as a solid foundation for your future endeavors. Keep in mind that learning is a lifelong journey, filled with continuous growth and discovery.
Thank you once again for being a crucial part of this course. We wish you all the best in your future academic and professional pursuits.
Farewell and best wishes!
TAs
Assignment 5 is now released!
Welcome to the final assignment of the Compiler Design Adventure! The submission deadline is June 16th, 2024, at 23:59 (Sun.). No late submissions will be accepted for this assignment.
For this assignment, you will connect the final pieces of the puzzle by generating RISC-V assembly code that can be executed on a RISC-V simulator. It will be a fun and rewarding experience to see your compiler in action!
If you encounter any challenges during the setup process, don’t hesitate to reach out to the TAs.
Assignment 4 is now released!
Dear folks, the fourth assignment is now released. The due date is May 26, at 23:59 (Sun.).
As with the previous assignment, this one requires a significant amount of effort. We strongly recommend starting early to effectively navigate through the challenges. While the road ahead may have its obstacles, we promise that by tackling this assignment, you’ll not only gain insights into how compilers utilize the symbol table for type checking but also learn invaluable lessons in implementing interactions between objects.
If you encounter any difficulties, don’t hesitate to reach out for assistance. Whether through the forum or email, we’re here to support you every step of the way.
Overview
This course is intended to explore the principal ideas and techniques of compiler construction. Topics include lexical analysis, syntax analysis including LL and LR parsers, type checking, run-time environments, symbol tables, code generation, and compiler-construction tools.
This course aims to give you a solid foundation in the theory of compiler construction as well as the experience of building a compiler. Much of what you have learned about algorithms and data structures will come to bear as you study and implement the various components of a compiler. In a sense, compiler construction is a showcase for many other disciplines of computer science.
Goals
- To learn structure of compilers.
- To learn basic techniques used in compiler construction such as lexical analysis, top-down and bottom-up parsing, context-sensitive analysis, and intermediate code generation.
- To learn basic data structures used in compiler construction such as abstract syntax trees, symbol tables, three-address code, and stack machines.
- To learn software tools used in compiler construction such as lexical analyzer generators (Lex), and parser generators (Yacc).
- To construct a compiler for a small language using the above techniques and tools.