How can I set up a D cross-compiler?
Posted: Wed Nov 19, 2014 5:54 pm
I've run through the basic Bare Bones tutorial and had a buncha fun implementing my own kernel text output in C++11. Currently I've set up my GCC cross compiler on an ubuntu VM (a clean install for good measure) and everything is working great so far.
However, now I want to switch over to the D language for my kernel programming instead. The tutorial on the wiki on the D language does not mention anything about setting up a cross-compiler for D and I'm not sure what direction I should look in for doing this.
The page on cross compiling for any generic target on the wiki for D shows I need a c library implementation if I read it right, but how can I implement everything in the c library without even having the kernel itself up and running?
Even more, the xomb build script on github show it uses "ldc" (still without a specific target in the name, even though it does have it for "x86_64-pc-elf-gcc") rather than the "gdc" mentioned on the D Bare Bones article and anywhere else I've seen where D code is compiled.
Could someone help me shed some light on how I can set this up or if I have to set up a D cross compiler at all?
However, now I want to switch over to the D language for my kernel programming instead. The tutorial on the wiki on the D language does not mention anything about setting up a cross-compiler for D and I'm not sure what direction I should look in for doing this.
The page on cross compiling for any generic target on the wiki for D shows I need a c library implementation if I read it right, but how can I implement everything in the c library without even having the kernel itself up and running?
Even more, the xomb build script on github show it uses "ldc" (still without a specific target in the name, even though it does have it for "x86_64-pc-elf-gcc") rather than the "gdc" mentioned on the D Bare Bones article and anywhere else I've seen where D code is compiled.
Could someone help me shed some light on how I can set this up or if I have to set up a D cross compiler at all?