Skip to content

yutopp/rill

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Rill Programming Language

This repository is heavely under development...

chi- CI

Rill-lang is a programming language which is designed for systems programming.

This repository contains the implementation of Rill-lang.

Supported targets

  • x86_64-unknown-linux-gnu
  • wasm32-wasi

How to use

e.g. rillc compile test/pass/hello_world.rill generates a.out by default.

Please execute rill --help to check more options!

How to build

Supported Environments

  • Arch Linux (host: x86_64)
  • Ubuntu 20.04 (host: x86_64)

Prerequisites

  • OCaml (>= 4.09.0)
  • OPAM (>= 2.1.0~beta2)
    • dune (>= 2.5)
  • CMake (>= 3.5.1)
  • LLVM (>= 11.0.0)
  • GCC (>= 10)

Steps

Clone files

$ git clone https://github.com/yutopp/rill.git
$ cd rill

Setup rillc (compiler only) environments

See rillc/README.

Generate project files by using CMake

rill$ cmake -B build

The project will be created under the build directory, which can be named any way you like.

Build a toolchain

rill$ cmake --build build

or

rill$ cd build
build$ make

Run tests

rill$ cd build
build$ make CTEST_OUTPUT_ON_FAILURE=1 test

Install a toolchain

cmake --install build --prefix /usr/local

A toolchain will be installed under the specified prefix.

License

Boost License Version 1.0