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
Published
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/0.5.1.tar.gz
sha256=20b6a4c93cacf239e0122498d681ca695aca3d6de984b8596fc9fadd25af75cd
sha512=3f0338eb641f668627927ab86df328359faefc12e0186c0e06da5ab3ec0866e33e3c488ab2365fd234a3eda9e41f19b329ba7f137acb36ddcf774c6591905c50
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/ocaml-emcc/ocaml-emcc.0.5.1/opam
No package is dependent