From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA10673; Mon, 5 Nov 2001 11:06:07 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA10484 for ; Mon, 5 Nov 2001 11:06:06 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id fA5A64H26935; Mon, 5 Nov 2001 11:06:04 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id LAA10789; Mon, 5 Nov 2001 11:06:04 +0100 (MET) Date: Mon, 5 Nov 2001 11:06:04 +0100 From: Xavier Leroy To: Vikas Sodhani Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocaml and linux kernel programming Message-ID: <20011105110604.H8282@pauillac.inria.fr> References: <3BE2B882.2D176F44@oryxa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <3BE2B882.2D176F44@oryxa.com>; from vikas_sodhani@oryxa.com on Fri, Nov 02, 2001 at 10:15:14AM -0500 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > 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: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr