tmcgilchrist / flambda-backend

The Flambda backend project for OCaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The Flambda backend project for OCaml

This repository is for more experimental work, of production quality, on the middle end and backend of the OCaml compiler. This is also the home of the Flambda 2 optimiser and the Cfg backend.

The Flambda backend is currently based on OCaml 4.14.1.

The following gives basic instructions for getting set up. Please see HACKING.md for more detailed instructions if you want to develop in this repo. That file also contains instructions for installing the Flambda backend compiler in a way that it can be used to build OPAM packages.

One-time setup for dev work or installation

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

One-time setup (you can also use 4.14.1):

$ opam switch 4.14.0  # or "opam switch create 4.14.0" if you haven't got that switch already
$ eval $(opam env)
$ opam install dune

You probably then want to fork the ocaml-flambda/flambda-backend repo to your own Github org.

Branching and configuring

Use normal commands to make a branch from the desired upstream branch (typically main), e.g.:

$ git clone https://github.com/ocaml-flambda/flambda-backend
$ cd flambda-backend
$ git checkout -b myfeature origin/main

The Flambda backend tree has to be configured before building. The configure script is not checked in; you have to run autoconf. For example:

$ autoconf
$ ./configure --prefix=/path/to/install/dir

Building and installing

To build and install the Flambda backend, which produces a compiler installation directory whose layout is compatible with upstream, run:

$ make install

About

The Flambda backend project for OCaml


Languages

Language:OCaml 84.7%Language:C 10.4%Language:Shell 1.6%Language:Assembly 1.0%Language:Makefile 0.6%Language:M4 0.4%Language:Roff 0.3%Language:Standard ML 0.3%Language:TeX 0.1%Language:C++ 0.1%Language:SCSS 0.1%Language:PHP 0.0%Language:Awk 0.0%Language:JavaScript 0.0%Language:Python 0.0%Language:Batchfile 0.0%Language:CSS 0.0%Language:Perl 0.0%Language:SMT 0.0%Language:HTML 0.0%Language:EJS 0.0%Language:Common Lisp 0.0%Language:Forth 0.0%Language:C# 0.0%