From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by yquem.inria.fr (Postfix) with ESMTP id B6129BB91 for ; Sat, 23 Jul 2005 09:46:43 +0200 (CEST) Received: from zamok.crans.org (zamok.crans.org [138.231.136.6]) by concorde.inria.fr (8.13.0/8.13.0) with ESMTP id j6N7khSI023103 for ; Sat, 23 Jul 2005 09:46:43 +0200 Received: from localhost (vert.adm.crans.org [138.231.144.2]) by zamok.crans.org (Postfix) with ESMTP id 327378C7A; Sat, 23 Jul 2005 09:46:43 +0200 (CEST) Received: from zamok.crans.org ([138.231.144.2]) by localhost (zamok [138.231.144.2]) (amavisd-new, port 10024) with LMTP id 02335-02-88; Sat, 23 Jul 2005 09:46:43 +0200 (CEST) Received: by zamok.crans.org (Postfix, from userid 33) id 105DD8C81; Sat, 23 Jul 2005 09:46:43 +0200 (CEST) Received: from adsl-68-126-128-19.dsl.scrm01.pacbell.net (adsl-68-126-128-19.dsl.scrm01.pacbell.net [68.126.128.19]) by www.crans.org (IMP) with HTTP for ; Sat, 23 Jul 2005 09:46:42 +0200 Message-ID: <1122104802.42e1f5e2e654b@www.crans.org> Date: Sat, 23 Jul 2005 09:46:42 +0200 From: Stephane.Glondu@crans.org To: Jonathan Roewen Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Creating nativecode apps References: <92AD4A03-A3FA-4725-97B7-3355C057401D@m4x.org> <1122104179.42e1f37350e2a@www.crans.org> In-Reply-To: <1122104179.42e1f37350e2a@www.crans.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.6 X-Originating-IP: 68.126.128.19 X-Webmail-Server: www.Crans.org X-Virus-Scanned: by amavisd-new-20030616-p10 (Debian) at crans.org X-Miltered: at concorde with ID 42E1F5E3.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 nativecode:01 rephrase:01 ocaml:01 compilers:01 compiler:01 -output-obj:01 ocaml:01 compilers:01 ocamlopt:01 runtime:01 runtime:01 stdlib:01 ...:98 assembler:02 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=NO_REAL_NAME autolearn=disabled version=3.0.3 Ooops... Sorry for double mail, Jonathan. Selon Jonathan Roewen : > Let me rephrase. What do the ocaml compilers need a C compiler for? > And, if I use -output-obj, is the object file created solely by the > ocaml compilers, or does this depend on a C compiler? It depends on a C compiler. Actually, ocamlopt generates an assembler file which is then linked with the runtime, which is written in C (but already compiled, of course). That runtime uses a lot of C stdlib, but you should be able to get rid of it for your purpose. Stephane Glondu