-
Notifications
You must be signed in to change notification settings - Fork 13
Building Core_kernel
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).
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.
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 Buffer
s.
In addition the js_of_ocaml runtime needs to be modified to include more complete bigarray support.