caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* OCaml for Windows: a suggestion
@ 2001-02-08 21:07 Lionel Fourquaux
  2001-02-04 17:54 ` Jean Martos
  0 siblings, 1 reply; 10+ messages in thread
From: Lionel Fourquaux @ 2001-02-08 21:07 UTC (permalink / raw)
  To: caml-list

[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





^ permalink raw reply	[flat|nested] 10+ messages in thread
* Re: OCaml for Windows: a suggestion
@ 2001-02-13  4:36 Hao-yang Wang
  0 siblings, 0 replies; 10+ messages in thread
From: Hao-yang Wang @ 2001-02-13  4:36 UTC (permalink / raw)
  To: caml-list

>I did a Cygwin port of OCaml a few months ago.  It is available for
>testing from the CVS repository (http://camlcvs.inria.fr/), and will
>be available publically in the forthcoming 3.01 release.
>
>Everything works (including the debugger!) except the threads library,
>the COM interface via CamlIDL, and the toplevel GUI application.
>
>This port uses full Cygwin, not the Mingw subset.
>
>For the time being, the MSVC port is still maintained, but it is clear
>that we at INRIA don't have the resources to work on two Windows ports
>in parallel -- one port is already enough of a pain...  So, one of the
>ports will eventually have to go or be maintained by others.
>
>Enjoy,
>
>- Xavier Leroy


I don't mind whether the development environment of ocaml itself is built 
with MSVC or gcc. However, the interoperatibility (spelling?) between 
codes written in ocaml and MSVC is important to me.

Cheers,
Hao-yang Wang



^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2001-02-13 18:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-02-08 21:07 OCaml for Windows: a suggestion Lionel Fourquaux
2001-02-04 17:54 ` Jean Martos
2001-02-10 19:28   ` Lionel Fourquaux
2001-02-11  9:52   ` Xavier Leroy
2001-02-12 19:37     ` Chris Hecker
2001-02-12 21:27       ` Lionel Fourquaux
2001-02-14 15:32         ` [Caml-list] " Vijay Chakravarthy
2001-02-13 18:07           ` Mattias Waldau
2001-02-13 18:20           ` Gerd Stolpmann
2001-02-13  4:36 Hao-yang Wang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).