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 KAA16501 for caml-red; Fri, 9 Feb 2001 10:30:32 +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 WAA11552 for ; Thu, 8 Feb 2001 22:16:27 +0100 (MET) Received: from embelia.wanadoo.fr (smtp-rt-7.wanadoo.fr [193.252.19.161]) by concorde.inria.fr (8.11.1/8.10.0) with ESMTP id f18LGQX13246 for ; Thu, 8 Feb 2001 22:16:26 +0100 (MET) Received: from villosa.wanadoo.fr (193.252.19.122) by embelia.wanadoo.fr; 8 Feb 2001 22:16:26 +0100 Received: from wfr01946 (164.138.104.215) by villosa.wanadoo.fr; 8 Feb 2001 22:15:57 +0100 Reply-To: From: "Lionel Fourquaux" To: Subject: OCaml for Windows: a suggestion Date: Thu, 8 Feb 2001 22:07:00 +0100 Message-ID: <000201c09213$3acd4960$d7688aa4@wfr01946> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: weis@pauillac.inria.fr [French version at the end] Hello, I'd like to suggest a change in the way OCaml is built under Windows. Wouldn't it be better if the files from byterun/ that are shared by ocamlrun, the native code compiler and the otherlibs (i.e. the GC, the primitives, and support functions) were put in a DLL ? IMHO, it has a number of advantages, notably: o It's makes it simpler to implement dynamically imported primitives (because the support functions can be imported from this DLL). o It reduces the size of OCaml executables (because this part of the code is shared) So I suggest to split byterun/ into two directories: one for the base OCaml implementation, and another (very small) for ocamlrun, and to split ocamlrun into a DLL and a small executable. (This is about what is done for the Windows versions of Perl and Python.) What do other users think of this proposal? Lionel Fourquaux [Français] Bonjour, Je voudrais proposer une modification dans la manière dont OCaml est compilé sous Windows. Est-ce qu'il ne serait pas péférable de placer les fichiers utilisés à la fois par ocamlrun, asmrun et les otherlibs (c'est-à-dire le GC, les primitives, et des fonctions de `support') dans une DLL ? A mon avis, cela présenterait plusieurs avantages, dont en particulier : - de faciliter l'implémentation de bibliothèques dynamiques de primitives (puisqu'une telle DLL pourrait importer les fontions dont elle a besoin); - de rédure la taille des exécutable produits par OCaml (en partageant cette partie du code). Alors, je suggère de séparer byterun/ en deux répertoires : un pour l'implémentation des services de base d'OCaml, et un autre (très petit) pour ocamlrun, et de scinder ocamlrun en une DLL et un petit exécutable. (C'est à peu près ce qui est fait dans les versions Windows de Perl et de Python.) Qu'en pensent les autres utilisateurs ? Lionel Fourquaux