ocaml-emccversion Documentation on ocaml.org

Compile OCaml programs with C stubs to WebAssembly with emscripten

ocaml-emcc runs OCaml bytecode on an emscripten build of ocamlrun and links the C stubs of the program and of its dependencies statically, which makes FFI-heavy libraries (zarith/gmp, apron, libclang...) usable in the browser and in node. The runtime is rebuilt from the sources of the switch's own compiler (any version from 4.08, including 5.x), C libraries come from recipes. Requires the emscripten SDK (emsdk) in PATH.

Authorrboudrouss <r.boudrouss@gmail.com>
LicensesMIT and LGPL-2.1-or-later WITH OCaml-LGPL-linking-exception
Homepagehttps://github.com/rboudrouss/ocaml-emcc
Issue Trackerhttps://github.com/rboudrouss/ocaml-emcc/issues
Maintainerrboudrouss <r.boudrouss@gmail.com>
Dependencies
Source [http] https://github.com/rboudrouss/ocaml-emcc/archive/refs/tags/1.1.0.tar.gz
sha256=bdd0307ac8ac88e0452784a45816287a6ccccd397a3c8b1228d5234e9397ef12
sha512=4183864a026e625c6b37f8e03a77240168e4a1ad59e78368403576785d5bc9cc13ae74ab470c1c59d4f9c9611f92bb073e5469a5c27c4c4035fe0e56b4e1ef2d
No package is dependent