It&#x27;s much easier than you think. OCaml can expose functions with a C ABI. You can put newlib on top of MirageOS, calling down to OCaml for basics (and newlib needs only a handful of IO and memory functions to be provided, so it isn&#x27;t particularly hard), and then you have instant POSIX. Now you can run most anything you want from C-land.