No D->C++, right?

Alex Rønne Petersen alex at
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
> <mailto:SeeWebsiteToContactMe at>> 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:

Alex Rønne Petersen
alex at

More information about the Digitalmars-d mailing list