[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [MirageOS-devel] Using Ocaml math libraries in MirageOS?
Hi Seamus, Firs, thank you to your interest about MirageOS :) ! The current status of MirageOS (Mirage 3.6) has a way to integrate C code into an unikernel. Currently, we have some examples about that: https://github.com/mirage/checkseum.git (checksum implementation in C and in OCaml) https://github.com/mirage/digestif.git (hash implementation in C and in OCaml) The way is to compile a C library (*.a) with some specific flags. These flags are available with `pkg-config`. So about compilation, when we call `ocamlopt` (with `dune`) to compile C code, we give some flags by this way: ```dune (library (name myclib_xen) (public_name myclib.xen) (c_names myclib) (c_flags (:include cflags.sexp)))
Le ven. 13 sept. 2019 à 22:25, Seamus Brady <seamus@xxxxxxxxxxxx> a écrit :
-- Romain Calascibetta - http://din.osau.re/
_______________________________________________ MirageOS-devel mailing list MirageOS-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/mirageos-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |