- Clone this repo
- Download this docker container:
docker pull dockercat9000/jst-compilers:latest
- Run the container and mount this repo. For example:
docker run -v /home/joseph/Github/llvmize:/data -td dockercat9000/jst-compilers
a) NOTE: Only use absolute paths in the-v
flag.
b) NOTE: Thesedocker
commands might needsudo
. - Create a terminal in the container with
docker exec -it #### /bin/bash
where####
are the beginning few digits of the container hash. - Run
source ~/.profile
to setup the OCaml paths. - Run
dune build
in/data
to build the project.
- Go to the
playground
directory. - Run
make
to usetest1.ml
to createtest.ll
. - Run
make asm
to usetest.ll
to generatetest.asm
. - Edit
test1.ml
to test different OCaml programs. - Run
make clean
to clean intermediate files.