This is COMET, Compiler and Optimizer for Mx* with Extended Traits. It is the course lab of CS2966@SJTU (Compiler Design, 2023 Summer), which implements a compiler for Mx* programming language to RV32I assembly code by Java and antlr4.
Clone this library, or download the .jar
file (unpublished).
If you download the source code, you can use make
to build this project and bin/mxc
to execute.
All the documents of this project can be found in docs/
. The requirement document of this course design is docs/requirement.md
and my development document is docs/overview.md
, which provides an overview of this compiler.
See docs/roadmap.md
COMET is licensed under MIT license.