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 PAA14437; Mon, 21 Oct 2002 15:18:24 +0200 (MET DST) 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 PAA13725 for ; Mon, 21 Oct 2002 15:18:24 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id g9LDIJ513660; Mon, 21 Oct 2002 15:18:19 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id PAA14648; Mon, 21 Oct 2002 15:18:19 +0200 (MET DST) Date: Mon, 21 Oct 2002 15:18:19 +0200 From: Xavier Leroy To: Dmitry Bely Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlopt / ocaml -custom and C compiler Message-ID: <20021021151819.D12164@pauillac.inria.fr> References: <3daf2a4f.865261093@smtp.interaccess.com> <87zntchwmc.dlv@wanadoo.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from dbely@mail.ru on Mon, Oct 21, 2002 at 02:15:54PM +0400 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > BTW, why Ocaml developers decided that ocamlopt should generate > camlprim?.c in C, but not directly in Assembler? Unless I'm mistaken, ocamlopt doesn't generate a camlprim.c file; ocamlc -custom does. The reason for going through C in this case is that ocamlc has no knowledge of the assembly language for the processor: ocamlc is designed to work for any system that provides an ANSI C compiler. > This is especially inconvenient for > Windows users where C compiler is not the part of OS distribution and > should be bought separately... We have addressed this issue in at least two different ways. One is the dynamic loading of C/Caml stub code, as implemented since release 3.04. Now is the time for external C libraries to use this mechanism, especially if they are to run under Windows. The second answer to this problem is the Mingw port. Don't complain about lack of options :-) - Xavier Leroy ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners