Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] ocaml and linux kernel programming
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-11-05 (10:06)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] ocaml and linux kernel programming
> Hi, I am just learning the OCaml language and was hoping to receive some
> advice on the possibilities and trade offs of writing linux kernel
> modules using ocaml. 

As Vitaly said, your best bet is to run the Caml code in user space
via some sort of kernel/userland gateway.  Kernel-land is a somewhat
restricted programming environment.  E.g. you can't even write kernel
code in (full) C++ because the run-time environment for C++
allocations and exceptions is not available in the kernel.  So, your
chances of getting OCaml code to run in the kernel are very slim :-)

- Xavier Leroy
Bug reports:  FAQ:
To unsubscribe, mail  Archives: