From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from weis@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA25338 for caml-red; Tue, 23 Jan 2001 23:01:15 +0100 (MET) Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id LAA31609 for ; Tue, 23 Jan 2001 11:59:55 +0100 (MET) Received: from magnolia.wanadoo.fr (smtp-rt-11.wanadoo.fr [193.252.19.62]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f0NAxsD29596 for ; Tue, 23 Jan 2001 11:59:54 +0100 (MET) Received: from andira.wanadoo.fr (193.252.19.152) by magnolia.wanadoo.fr; 23 Jan 2001 11:59:54 +0100 Received: from wfr01946 (164.138.50.177) by andira.wanadoo.fr; 23 Jan 2001 11:59:36 +0100 Reply-To: From: "Lionel Fourquaux" To: , Cc: Subject: RE: -custom under win32 Date: Tue, 23 Jan 2001 11:49:25 +0100 Message-ID: <000001c0852a$87b72020$b1328aa4@wfr01946> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <980184766.3a6c6ebe3620e@imp.pro.proxad.net> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: weis@pauillac.inria.fr > > Hi OCamler! > > I want to generate a "closed bytecode" executable under win32 > (that contains the > bytecode interpreter so that it can be used on a machine without OCaml > installed). I'm just using the "standard" Ocaml run-time (I > haven't written any > C-code to incorporate in the run-time). > > 1. Do I understand well that I need the Microsoft Linker > (cl.exe), but ONLY the > linker, not the C compiler or assembler ? You need cl.exe, and it's not the linker, but the compiler. Mostly, it is used to call link.exe (the linker) with the required arguments. However, I think ocamlc generate also a simple C file for the list of primitives. Anyhow, you need VC++. Wouldn't it be possible to modify ocamlc so that only the assembler and the linker are used ? (By generating this table of primitives in assembly.) > > 2. If yes, does anybody know if this linker can be > obtained/purchased/... > without buying VC++ ? The Miscrosoft linker (link.exe) and the assembler (ml.exe) are included in the Windows 98 DDK and in the Windows 2000 DDK. Both can be downloaded form Microsoft website. The required libraries are also included. > > 3. Can my problem be solved with Cygwin now, in a future version ? I think so, but I'm not very interested in Cygwin, so you'd better check. > > Jean-Marc Eber > Hope this helps, Lionel Fourquaux