[m-dev.] __fastcall convention

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Aug 6 17:37:16 AEST 2000


On 04-Jul-2000, Peter Ross <petdr at cs.mu.OZ.AU> wrote:
> For use with the MLDS, we should look at the performance increase for
> the following:
> 
> #ifdef _MSC_VER
>   #define CALLING_CONVENTION __fastcall
> #else
>   #define CALLING_CONVENTION
> #endif
> 
> void CALLING_CONVENTION some_mercury_function()
> {
> }
> 
> Anything whose name is exported using pragma export should probably be
> 
> void exported_function_name()
> {
>     some_mercury_function();
> }
> 
> with the standard calling convention.

Is there a compiler option to make __fastcall the default calling convention?
If so, could we use that option?

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list