From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id 650DCBC51 for ; Mon, 6 Dec 2004 02:03:52 +0100 (CET) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.200]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id iB613pJq005883 for ; Mon, 6 Dec 2004 02:03:52 +0100 Received: by wproxy.gmail.com with SMTP id 57so10045wri for ; Sun, 05 Dec 2004 17:03:44 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=QeT8nrojHZrC+tqE7V9zRdYImdGBd7xyFyKIZ7LDhPg8UsGdXVr/d+592BQZKWTtYck53SSUIqYv9rZSAKhf4ujPbyhbjD+8+TZZzLyj4FybCbii0e2KS+feeAHtWEfl22QPFQbGSgcI5AKUJz+7I/GPnMA8hXqN7JVowV6CNd8= Received: by 10.54.23.28 with SMTP id 28mr951wrw; Sun, 05 Dec 2004 17:03:16 -0800 (PST) Received: by 10.54.37.75 with HTTP; Sun, 5 Dec 2004 17:03:16 -0800 (PST) Message-ID: <388f6fcd04120517037bf634ab@mail.gmail.com> Date: Sun, 5 Dec 2004 17:03:16 -0800 From: Sachin Shah Reply-To: Sachin Shah To: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Using OCaml in a kernel In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: X-Miltered: at nez-perce with ID 41B3AFF7.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 ocaml:01 humps:01 ocaml:01 wrote:01 ocamlopt:01 compiler:01 gcc:01 caml-list:01 beginner's:01 beginners:01 bug:01 interfaces:01 kernel:01 bin:01 X-Spam-Checker-Version: SpamAssassin 3.0.0 (2004-09-13) on yquem.inria.fr X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_BY_IP autolearn=disabled version=3.0.0 X-Spam-Level: Take a look at some of the projects at http://caml.inria.fr/humps/caml_Interfaces_with_other_languages.html. Camouflage and Cigen are a good point to start. They will primarily show you how to get OCaml working with C/C++. The rest is up to you. Regards, Sachin. On Mon, 6 Dec 2004 13:48:23 +1300, Jonathan Roewen wrote: > Hi All, > > I'm developing an operating system, and I want to write as much of it > as possible in OCaml. I had hoped to use the ocamlopt compiler, and > have it target i586-elf, like my gcc (3.4.1) cross-compiler. I'm using > newlib with my cross-compiler, so I have a C library available. > > However, I'm lost at how to get OCaml into the mix. Anyone able to > offer some suggestions of the sorts of things I could try? > > Currently I have a single .ml file that will hopefully start all the > major tasks, and a couple of supporting C files, and I'm trying to > jump into OCaml from my main function in C-land. > > Regards, > > Jonathan Roewen > > _______________________________________________ > Caml-list mailing list. Subscription management: > http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list > Archives: http://caml.inria.fr > Beginner's list: http://groups.yahoo.com/group/ocaml_beginners > Bug reports: http://caml.inria.fr/bin/caml-bugs >