Gbury / flambda-backend

The Flambda backend project for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flambda-backend

The Flambda backend project for OCaml.

Installation instructions

Only currently tested on Linux/x86-64 and macOS/x86-64.

$ opam switch 4.11.1  # or "opam switch create 4.11.1" if you haven't got that switch already
$ eval $(opam env)
$ git clone https://github.com/ocaml-flambda/dune
$ cd dune
$ git checkout origin/special_dune
$ make release
$ cd ..
$ git clone https://github.com/ocaml-flambda/flambda-backend
$ cd flambda-backend
$ git checkout origin/4.11
$ autoconf
$ ./configure --prefix=/path/to/install/dir --enable-middle-end=closure --with-dune=$(pwd)/../dune/dune.exe
$ make
$ make install

Note that make install completely overwrites the given --prefix directory.

Prior to make install you can do:

  • make runtest to run the Flambda backend tests (which use dune);
  • make runtest-upstream to run the upstream testsuite. The upstream testsuite runs much faster if you install GNU parallel. This is likely already present on Linux machines. On macOS, install Homebrew, then brew install parallel.

You can also specify --enable-middle-end=flambda.

To rebuild after making changes, you can just type make (then make runtest-upstream and/or make install as required). If you start a new shell (e.g. after a machine reboot) you first need to ensure your OPAM environment is set up correctly. For example:

$ opam switch 4.11.1
$ eval $(opam env)
$ cd flambda-backend
$ make

About

The Flambda backend project for OCaml


Languages

Language:OCaml 81.2%Language:C 11.2%Language:Shell 2.8%Language:Standard ML 1.0%Language:Makefile 1.0%Language:Assembly 1.0%Language:M4 0.6%Language:M 0.5%Language:TeX 0.3%Language:C++ 0.1%Language:Mathematica 0.1%Language:Awk 0.1%Language:Batchfile 0.0%Language:Perl 0.0%Language:CSS 0.0%Language:HTML 0.0%Language:Forth 0.0%Language:Common Lisp 0.0%Language:C# 0.0%