forked from http://min-caml.sourceforge.net/
# install prerequired library
$ opam install llvm
# bulid compiler
$ git clone git@github.com:mzp/min-caml.git
$ cd min-caml
$ ./arch/to_llvm
$ make
# build hello.ml
$ ./build.sh hello && ./hello
See Changelog
- 32-bit x86 (with SSE2, that is, Pentium IV or later) is now supported (on Linux and Cygwin); execute
./arch/to_x86
beforemake
.
- PowerPC is now supported (in addition to SPARC), thanks to Ms. Masuko and Prof. Asai in Ochanomizu University. You must execute either
./arch/to_ppc
or./arch/to_sparc
beforemake
. - The register allocator now uses a simpler algorithm. It omits the backtracking (ToSpill and NoSpill) in previous versions.