Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
From: Chris Hecker <checker@d...>
Subject: Re: RE : [Caml-list] building ocaml 3.02 under win32

>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. 
> ...
> 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.

I'd be interesting in finding out as well, but I woudln't be so sure it will result in a win.  The problem with register calling conventions is that often the called function has to spill everything onto the stack anyway to do its own work, resulting in slower and bigger code.  Without going through and adding fastcall by hand to leaf functions, it's hard to tune this behavior.  Mike Abrash wrote an article in DDJ about this years ago that might still be relevant.

Chris


-------------------
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