- This project is the implementation of DLX SSA-based compiler for the course CS241 Advanced Compiler Class taught by Professor Michael Franz in 2023 winter at UC Irvine.
- For running the compiler project, python version needs to be > python3.7+.
- Required package: > multipledispatch.
- Required package: > graphviz.
- This project is splitted into 2 parts:
- The warmup project: A simple interpreter running the parser in the backend to do the parsing tests on dlx basic algebra computation. The warmup project can be simply run by entering the warmup project folder and do > python run_interpreter.py.
- The main SSA-based compiler: For running the code and test the results, please do > python main.py. For testing the compiler with different test code written in dlx, we can add new files in txt file and save it to the test directory. Then change the file name in main.py.
- Since this project is written individually, coloring and functions for the compiler are not implemented. This compiler includes basic algebra operation compilation, if statement, while statement, and array data structure handlement.
-
Notifications
You must be signed in to change notification settings - Fork 0
UCI-CS241-Advanced-Compiler-W23
License
zjc664656505/UCI-CS241-Advanced-Compiler-main
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
UCI-CS241-Advanced-Compiler-W23
Topics
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published