Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

did mirage OS implemented the linux kernel in OCaml?

Is it true that mirage is a new implementation of unix kernel with OCaml instead of C? or is mirage implemented only a part of unix kernel in Ocaml?

Thanks.

like image 305
Soheila DehghanZadeh Avatar asked Jan 24 '26 05:01

Soheila DehghanZadeh


1 Answers

MirageOS isn't an implementation of any UNIX system at all. MirageOS assembles OCaml (or other language, via FFI) libraries to provide similar services as a traditional kernel. Most of them are written mostly in OCaml with some C stubs, and don't provide similar interfaces to UNIX-y system calls.

There are a few libraries which are built to let a traditional operating system provide the functionality that an application might need in MirageOS (for example, reading a file or sending a network packet), but these libraries aren't reimplementations of the kernel. They're OCaml libraries which make traditional system calls to use the kernel running the userspace OCaml program.

like image 117
yomimono Avatar answered Jan 27 '26 00:01

yomimono



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!