x32-abi with D?

Iain Buclaw ibuclaw at ubuntu.com
Sat May 26 06:43:37 PDT 2012


On 26 May 2012 13:59, Alex Rønne Petersen <alex at lycus.org> wrote:
> On 26-05-2012 14:06, Alex Rønne Petersen wrote:
>>
>> On 26-05-2012 14:03, Trass3r wrote:
>>>>
>>>> The compiler is able to cope. Have made some updates to the D runtime
>>>> and Phobos library to weed out any issues relating to such platforms
>>>> (NaCL is another system which uses 32bit pointers on x86_64 arch),
>>>
>>>
>>> Should go into upstream druntime shouldn't it?
>>
>>
>> No, druntime is compiler-specific. Phobos is a different story.
>>
>
> Speaking of which, Iain, any way we could upstream all of GDC's Phobos
> changes? (Perhaps same way you did it with DMD?)
>
>

You could try, but I can't think of any changes that would be
considered suitable for upstreaming. To list notable differences off
the top of my head:

- void* is replaced with va_list where appropriate.
- some version code to whom's identifiers are only emitted from the
gdc compiler.
- some functions in std.math call the long double rather than double
math lib functions.
- std.format.doFormat has some difference for consideration that the
va_list varies on differing architectures.


-- 
Iain Buclaw

*(p < e ? p++ : p) = (c & 0x0f) + '0';


More information about the D.gnu mailing list