No D->C++, right?
Alex Rønne Petersen
alex at lycus.org
Fri Jul 13 13:24:16 PDT 2012
On 13-07-2012 21:46, Kevin Cox wrote:
>
> On Jul 13, 2012 3:45 PM, "Nick Sabalausky"
> <SeeWebsiteToContactMe at semitwist.com
> <mailto:SeeWebsiteToContactMe at semitwist.com>> wrote:
> >
> > Am I correct in my understanding that we still don't have a reliable
> > tool to translate a D source to C or C++? Can LDC/GDC do anything like
> > that? (Doesn't LLVM have a C-outputting backend?)
> >
>
> Yes LLVM does. I think GCC can do something like that too. AFAIK this
> is the only way to do it.
>
LLVM's C back end is deprecated since nobody used/maintained it.
Anyway, translating a D AST to C should be relatively trivial. Maybe you
can base it on this: https://github.com/adamdruppe/dmd/tree/dtojs
--
Alex Rønne Petersen
alex at lycus.org
http://lycus.org
More information about the Digitalmars-d
mailing list