Mincc: Mincc Is Not a Complex Compiler
A compiler that transforms MinCaml sources into RINANA, an original assembly language inspired by RISC-V.
- GHC 9.8.2 or later
- stack 2.15.7 or later
Install these components by following the instructions on The Haskell Tool Stack. Installing it through ghcup is recommended.
The basic usage of mincc
is as follows:
mincc -i <input file> -o <output file>
To enable optimizations, you can use the -O
option.
mincc -i <input file> -o <output file> -O
mincc
has various options. For more information, use the --help
option to get the list of them.
mincc --help
git clone https://github.com/cpuex1/mincc
cd mincc
stack run -- [options]
Run the following commands to build mincc
manually.
git clone https://github.com/cpuex1/mincc
cd mincc
stack --local-bin-path . build --copy-bins
An executable named mincc
will be appeared in the current directory.
Visit mincc build workflow and download the artifacts.