On 2011-04-13 02:59, Brendan Simon (eTRIX) wrote:
Can GDC (or DMD) be built as a cross compiler ?? e.g. targeting ARM or MIPS or PowerPC, etc ?? I'm presuming this should be no problem for GCC ??
Theoretically there shouldn't be a problem for GDC or LDC (D frontend with LLVM backend) to generate code for those platforms. But then you would also need to have the runtime ported to the given platform.
My development/host platforms are OS X and Debian Linux. Are there any prebuilt binaries for such cross-compilers ??
On Mac OS X you should have cross compilers for PowerPC and ARM, both GCC and Clang/LLVM.
BTW, does GDC generate C++ code for GCC to compile, or does it directly generate object code ?? I'm presuming the latter.
It generates object code directly.
Can D be used in low-level drivers for Linux or other RTOS (e.g. freertos) ??
I guess so. You need to watch out for the runtime. I mean, D has a garbage collector and other stuff in the runtime that C doesn't
-- /Jacob Carlborg