D and SCons

Sean Kelly sean at invisibleduck.org
Fri Jan 6 10:05:54 PST 2012


From an ABI perspective, I know GDC used to not pass the first function argument in EAX on x32 (ie. the calling convention for extern (C) and extern (D) were identical).  I imagine this is still true, but one of the GDC folks would have to say for sure.  The goal however is certainly to make the ABI sufficiently detailed that what you're saying would work.

On Jan 6, 2012, at 9:42 AM, Russel Winder wrote:

> On Fri, 2012-01-06 at 09:30 -0800, Sean Kelly wrote:
>> No. Each has a separate runtime, etc. 
> 
> OK, thanks.
> 
> I had sort of been hoping that because DMD and GDC can both compile to
> object code that can be linked with GCC that there might be a hope of
> interworking.  But it seems that the link-time libraries required for
> DMD and GDC compiled objects is different and incompatible.
> 
> 
>> Sent from my iPhone
>> 
>> On Jan 6, 2012, at 6:29 AM, Russel Winder <russel at russel.org.uk> wrote:
>> 
>>> I am planning doing a bit more work on the SCons support for D.  In
>>> terms of strategy the following question arises:  Are the object files
>>> produced by DMD, GDC and LDC mutually compatible?  i.e. can some sources
>>> be compiled with DMD, some with GDC, and some with LDC and all the
>>> object files linked using whichever linker the user chooses?
>>> 
>>> Thanks.
>>> 
>>> -- 
>>> Russel.
>>> =============================================================================
>>> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
>>> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
>>> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder
> 
> -- 
> Russel.
> =============================================================================
> Dr Russel Winder      t: +44 20 7585 2200   voip: sip:russel.winder at ekiga.net
> 41 Buckmaster Road    m: +44 7770 465 077   xmpp: russel at russel.org.uk
> London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder



More information about the Digitalmars-d mailing list