Mainstream D Programming
Chad J
gamerChad at _spamIsBad_gmail.com
Sun Oct 14 20:44:05 PDT 2007
Henning Hasemann wrote:
> Since lots of things work differently in D and C++ it might be even
> easier to compile D code into C like opendylan does for example.
> (Note that you cant simple translate it to another language anyway. You
> *will* have to "compile" it ie instantiate templates etc... Maybe that
> would not even be *that* hard since there are a handful D code parsers
> underway already)
>
> I dont know if you are aware of it but there is already a gcc frontend
> for D (called dgcc aka gdc) ie its possible to compile D code nearly
> everywhere where a gcc runs, so getting D code to run on an xbox or
> whatever shouldnt really be a problem I think.
>
> Henning
>
While gcc supports a lot of targets, some may be very proprietary and
not have a gcc backend for them. You can probably get a C compiler for
just about anything though.
Also, and probably more importantly, getting gdc to cross compile isn't
always that easy. I've been there with arm-wince-pe-gdc. It might be
if you have a team of engineers, but on a volunteer basis - not so much.
I'd love to see a D to C compiler. It seems to me like it would be a
good temporary measure to use until D has the mega resources that the
more popular languages now possess. Unfortunately, I don't have the
time to spend on such an endeavor, so someone else will have to do this ;)
More information about the Digitalmars-d
mailing list