On 13/07/14 12:30, Johannes Pfau via D.gnu wrote:
AFAIK that's not possible with GCC right now. One GCC build always
targets one main architecture.

Is there any reason why you can't use the binaries from
http://gdcproject.org/downloads/ ?

No, none at all. I just thought, since I build GDC from source anyway, I might as well see if I can just add an extra couple of config options and get what I want. But it's great to have the ready-made downloads.

Just to know, does the 2.065 version require that I have gcc installed 4.9.0 on my system? Or is the "GCC" column just an indicator of what GCC sources the build was based on?

I assume you want a cross compiler? For native compilers on ARM
machines you can just use the usual instructions:
http://wiki.dlang.org/GDC/Installation/Generic

Yes, I'm interested principally in cross-compiling, both for linux-on-ARM and bare-metal ARM.

That said, t would be fun to actually have GDC running on an RPi. I remember compiling C++ code on it and the amusing horror of how terribly long it took, it will be fun to see how D compilation goes by comparison ... :-)

For cross compilers you must build at least binutils so this is more
complicated. The
http://wiki.dlang.org/Bare_Metal_ARM_Cortex-M_GDC_Cross_Compiler only
apply if you want an embedded compiler, i.e. you don't use linux/glibc.

For linux/glibc things are even more complicated. I'll have to refer
you to standard GCC-cross compiler tutorials, compiling cross-gdc is
exactly the same as compiling cross-gcc.

The simplest way to build such cross-compilers is with crosstool-NG:
http://wiki.dlang.org/GDC/Cross_Compiler/crosstool-NG
I also build the binaries at http://gdcproject.org/downloads/ with
crosstool-NG.

Thanks, I'll have a read through these. :-)

Reply via email to