brandonspark / smlnj

Standard ML of New Jersey

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Standard ML of New Jersey

This is the main development repository for SML/NJ. We are currently reworking many components of the system, so it is not very stable. For most uses, we recommend the legacy version of the system.

Currently, only Intel-based Macs are known to work.


Contents


Building From Source

The process for building the system from source code has changed.

  1. clone the repository

    git clone git@github.com:smlnj/smlnj.git
  2. cd to the cloned repository and get the boot files

    cd smlnj
    curl -O https://smlnj.org/dist/working/$VERSION/boot.amd64-unix.tgz

    where $VERSION is the version that you are building (e.g., 2022.1).

    We plan to incorporate this step into the build.sh script in the near future.

  3. build the installation

    ./build.sh

    Use build.sh -h to see the list of options accepted by the build script.

    As before, you can modify the config/targets file to add/remove components from the build.

After successful running of the build.sh script, bin/sml will be the interactive system.

Recompiling the System

The process of recompiling the system from source code is fairly similar to before.

  1. Switch to the system directory and run the cmb-make command:

    cd system
    ./cmb-make ../bin/sml

    The "../bin/sml" argument is optional; if omitted, then the sml command in the user's PATH will be used. Once can also specify a different path to an sml command, when appropriate.

  2. Bootstrap the system

    ./makeml
  3. Install the system

    ./installml -clean -boot

    The -boot option is new (and optional); it causes the existing boot files in the root directory (e.g., boot.amd64-unix.tgz) to be replaced by the files generated by the cmb-make command.

  4. Rebuild the libraries and tools

    cd ..
    ./build.sh

About

Standard ML of New Jersey

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:C++ 81.5%Language:Standard ML 13.2%Language:C 1.8%Language:Python 0.9%Language:TeX 0.5%Language:CMake 0.5%Language:HTML 0.4%Language:OCaml 0.3%Language:Assembly 0.2%Language:Shell 0.2%Language:Go 0.1%Language:Lex 0.1%Language:Makefile 0.1%Language:Perl 0.1%Language:GAP 0.0%Language:M4 0.0%Language:Roff 0.0%Language:Vim Script 0.0%Language:OpenEdge ABL 0.0%Language:Batchfile 0.0%Language:Emacs Lisp 0.0%Language:CSS 0.0%Language:Dockerfile 0.0%Language:Yacc 0.0%Language:Pascal 0.0%Language:Starlark 0.0%