D vs. C#

Don Clugston dac at nospam.com.au
Fri Oct 26 04:22:36 PDT 2007


Walter Bright wrote:
> Don Clugston wrote:
>> Unfortunately, the ABIs for Linux 64 and Windows 64 are diverging. 
>> It's ridiculous. I don't know if D will be able to support a common 
>> ABI across both platforms.
> 
> 
> dmd already supports two different ABIs - win32 and linux 32. There are 
> numerous subtle differences in calling conventions, alignment, register 
> usage, as well as the major one of name mangling.

The Linux64/Win64 difference is worse, though. It's possible to have a pure asm 
function which will work on both Linux32 and Win32; that's not possible for the 
64 bit case.
But I'm most worried about the requirements for system exception handling.



More information about the Digitalmars-d mailing list