English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
[Caml-list] building ocaml 3.02 under win32
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-16 (10:36)
From: Fabrice Popineau <Fabrice.Popineau@s...>
Subject: Re: RE : [Caml-list] building ocaml 3.02 under win32
* Lionel Fourquaux <lionel.fourquaux@wanadoo.fr> writes:

> Does passing /subsystem:console to the linker help ?  (main is
> hidden in libcamlrun.lib, so the linker fails to guess the
> subsystem.)

In  fact, the  problem was that  I tried  to compile  the whole system
using the default  __fastcall IA32 convention of MSVC  (it will use up
to 2  registers to pass   parameters to functions,  resulting in  less
overhead). I  was wondering about how  much  could be gained. 

However, the problem  is that using this  convention requires  all the
functions to be  fully  prototyped. This  is   not the case   when for
example   the byte compiler  emits   the  camlprim0.c  file: all   the
primitives are declared without their arguments. 

The changes needed to  cope with this are  beyond the time I can spend
on it right   now,  but  I'm pretty  sure   it  could be   result   in
significative better performances.

Bug reports: http://caml.inria.fr/bin/caml-bugs  FAQ: http://caml.inria.fr/FAQ/
To unsubscribe, mail caml-list-request@inria.fr  Archives: http://caml.inria.fr