ABI array format

Sean Kelly sean at f4.ca
Wed Dec 19 12:46:54 PST 2007


Jascha Wetzel wrote:
> Regan Heath wrote:
>> Correct me if I'm wrong but the ABI for arrays is not set in concrete 
>> by the D specification.  Therefore any code which relies on the ABI of 
>> arrays is inherently a little bit evil.
> 
> Luckily the D specs didn't make the same mistake as the C++ specs did by 
> *not* specifying the ABI: http://www.digitalmars.com/d/abi.html

Now if only GDC complied to the D ABI :-)

By the way, the ABI really should be expanded to encompass x86-64 and 
ideally exception handling as well.  As it is, the ABI really isn't 
sufficient to allow code built by one compiler to be linked to code 
built by another compiler, which is really the point of an ABI, isn't it?


Sean



More information about the Digitalmars-d mailing list