32-bit/64-bit D calling convention questions

Walter Bright newshound2 at digitalmars.com
Fri Aug 6 15:25:09 PDT 2010


Michel Fortin wrote:
> What will be the 64-bit D calling convention? Will it follow the host 
> platform's C calling convention?

Yes.

> or will it be more uniform across platforms?

No.

> Also, why is 32-bit D using its own calling convention instead of 
> reusing an already existing one?

Generates smaller/faster code.

> Why not use the host platform's C calling convention?

Which one of a dozen or so <g>? Everyone else ditched all the plethora of 
calling conventions when going to 64 bit, and I see no good reason not to join them.


More information about the Digitalmars-d mailing list