From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: weis Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA07815 for caml-redistribution; Mon, 10 Jan 2000 18:26:29 +0100 (MET) 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 OAA10010 for ; Mon, 10 Jan 2000 14:14:29 +0100 (MET) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.8.7/8.8.7) with ESMTP id OAA22942; Mon, 10 Jan 2000 14:14:05 +0100 (MET) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id OAA31019; Mon, 10 Jan 2000 14:14:03 +0100 (MET) Message-ID: <20000110141402.64185@pauillac.inria.fr> Date: Mon, 10 Jan 2000 14:14:03 +0100 From: Xavier Leroy To: Ravi Chamarty , caml-list@inria.fr Subject: Re: Porting OCaml to A Custom OS References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89.1 In-Reply-To: ; from Ravi Chamarty on Sat, Jan 08, 2000 at 06:22:33PM -0600 Sender: weis > Hi, > I am trying to port OCaml to a custom operating system which is tailored > to my needs. I wish to know what things to be taken care of. I would be > specifically interested to know which parts of the code I may be required > to modify? > What are the interfaces OCaml uses to talk with the OS ? The core runtime system uses essentially ANSI C plus a little bit of POSIX (file descriptors, open/read/write/lseek/close). In particular, all memory is allocated using malloc(). Some of the external libraries are more OS-dependent. For instance, the "Unix" library relies heavily on POSIX, although a partial port to Win32 is also available. If you have more specific questions, feel free to ask us (caml@inria.fr) directly. - Xavier Leroy