OPTLINK needs to die.
Jarrett Billingsley
jarrett.billingsley at gmail.com
Thu Feb 19 20:23:54 PST 2009
On Thu, Feb 19, 2009 at 10:44 PM, Walter Bright
<newshound1 at digitalmars.com> wrote:
> Jarrett Billingsley wrote:
>>
>> So byte[] (Chris Miller, sans R.) suggested that I suggest that we get
>> a flag for the Windows version of DMD to output ELF objects. The ELF
>> writer is already there. Why not just give us the option, and let us
>> fend for ourselves? ;)
>
> There's more to it than that, such as the memory model. For example, are
> reals 10 bytes (Windows) or 12 (Linux) or 16 (OSX) ?
>
So I'm assuming you have code like:
#if USING_ELF
real.alignof = 12;
#elseif USING_OMF
real.alignof = 10;
#elseif USING_MACH_O
real.alignof = 16;
#endif
So.. all you'd have to do is separate the "OS" logical decisions from
the "object type" decisions.
Or?
More information about the Digitalmars-d
mailing list