GDC Mac X-compiler
BCS
BCS_member at pathlink.com
Sat Jun 10 11:15:27 PDT 2006
In article <e6dt9g$2kp0$1 at digitaldaemon.com>,
=?ISO-8859-1?Q?Anders_F_Bj=F6rklund?= says...
>
>BCS wrote:
>
>
>> What I have is an embedded, PPC based, controller board that I am
>> programming on and want to get D code compiled for it. IIRC Macs use PPC
>> and therefor I am assuming that the GDC mac compiler is generating PPC
>> code. However, the only systems available to compile on are x86.
>>
>> So I need a D compiler and associated stuff that will run on an x86 and
>> generate PPC6 ELF files.
>
>I think you will need a PowerPC cross-compiler to whatever OS the board
>runs (Linux?).
It a little known RT OS so I couldn't use anything that is OS dependent without
re-hacking Phobos internals. But if I can stay away from the GC ("and how hard
can that be..." xx-p) a lot of code could fit that bill.
>The Mac OS X / Darwin GDC versions generate Mach-O files.
>
Ouch!! The system libs are ELF and I will need the final product to be ELF or
else nothing will load.
>GDC 0.18 should compile out of the box on PPC Linux, I think David said.
>You need to set the --target with configure, see GDC docs for details ?
>
Well, what I have access to is x86 Linux and WinXP. So I need something that
will run on one of those and produce the needed output (PPC6 as ELF). So if it
works under PPC Linux (implying that it can make ELF [??]), that only leaves
getting the same thing to compile for an x86 box.
>--anders
More information about the Digitalmars-d-learn
mailing list