mte/unikernel/duniverse/ocaml-gmp
2025-11-11 02:07:51 +01:00
..
.github/workflows 2025-11-11 02:07:51 +01:00
src 2025-11-11 02:07:51 +01:00
test 2025-11-11 02:07:51 +01:00
.gitignore 2025-11-11 02:07:51 +01:00
.ocamlformat 2025-11-11 02:07:51 +01:00
CHANGES.md 2025-11-11 02:07:51 +01:00
COPYING 2025-11-11 02:07:51 +01:00
COPYING.LESSERv3 2025-11-11 02:07:51 +01:00
dune-project 2025-11-11 02:07:51 +01:00
dune-workspace.solo5 2025-11-11 02:07:51 +01:00
gmp.opam 2025-11-11 02:07:51 +01:00
README.md 2025-11-11 02:07:51 +01:00

GMP - Packaged with Dune

More info on GMP: https://gmplib.org/

To use GMP in a cross-compilation-friendly way, simply add this library in your library dependencies and make sure it is locally fetched using the opam-monorepo plugin (https://github.com/ocamllabs/opam-monorepo).

Example Dune configuration:

(library my_library)
 (foreign_stubs (language c) (include_dirs (lib gmp)))
 (libraries gmp)
 ...
)

This configuration enables the inclusion of gmp.h and the usage of gmp functions, even in a cross-compiled environment such as MirageOS.