GithubHelp home page GithubHelp logo

ekdohibs / flambda-backend Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ocaml-flambda/flambda-backend

0.0 1.0 0.0 120.96 MB

The Flambda backend project for OCaml

Shell 1.72% JavaScript 0.05% Python 0.01% Perl 0.01% C 6.50% OCaml 89.67% Common Lisp 0.01% C# 0.01% Assembly 0.61% Standard ML 0.15% Awk 0.04% Forth 0.01% CSS 0.01% TeX 0.15% Makefile 0.59% HTML 0.01% Batchfile 0.02% SMT 0.01% M4 0.38% SCSS 0.09%

flambda-backend's Introduction

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 --enable-middle-end=closure

You can also specify --enable-middle-end=flambda or --enable-middle-end=flambda2. (The Flambda 2 compiler is not yet ready for production use.)

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

flambda-backend's People

Contributors

alanechang avatar antalsz avatar apilatjs avatar azewierzejew avatar ccasin avatar chambart avatar ekdohibs avatar gbury avatar goldfirere avatar gretay-js avatar keryan-dev avatar lpw25 avatar lthls avatar lukemaurer avatar mshinwell avatar nathanreb avatar ncik-roberts avatar oscarpi avatar patricoferris avatar poechsel avatar riaqn avatar rleshchinskiy avatar rtjoa avatar skarupke avatar smuenzel avatar stedolan avatar thenumbat avatar tonowak avatar trishume avatar xclerc avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.