You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Andrew Ray edited this page Apr 7, 2014
·
1 revision
This documents the process for building a iocamljs with the Core_kernel standard library.
This process is currently based on the development version of js_of_ocaml d744f8b7517e0c9dfcdbeb194fb3b6b16f862def (April 5th 2014).
Building the bytecode top level
We need to build the iocaml toplevel with Core_kernel using a 32 bit compiler toolchain. I use the opam 4.01.0+32bit compiler switch for 64 bit hosts.
Building with js_of_ocaml
You cannot use the 32 bit version of js_of_ocaml to compile the toplevel, so I set the JSC makefile variable to point to a 64 bit version of js_of_ocaml. Note that while there are currently problems building toplevels with a 32 bit js_of_ocaml, even with fixes it will still not work simply because the resulting javascript exceeds the 16mb limit of OCaml Buffers.
In addition the js_of_ocaml runtime needs to be modified to include more complete bigarray support.