Skip to content

cpuex1/mincc

Repository files navigation

mincc

Mincc: Mincc Is Not a Complex Compiler

A compiler that transforms MinCaml sources into RINANA, an original assembly language inspired by RISC-V.

Requirements

  • 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.

Usage

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

Installation

Run without installation

git clone https://github.com/cpuex1/mincc
cd mincc
stack run -- [options]

Build it manually

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.

Download artifacts from GitHUb

Visit mincc build workflow and download the artifacts.

About

A simple but powerful compiler which transforms MinCaml into Rinana, an original ISA

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages