On 13-07-2012 21:46, Kevin Cox wrote:

On Jul 13, 2012 3:45 PM, "Nick Sabalausky"
<seewebsitetocontac...@semitwist.com
<mailto:seewebsitetocontac...@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
a...@lycus.org
http://lycus.org

Reply via email to