Transform/Compile to C/CPP as a target

ParticlePeter via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Jul 23 05:39:34 PDT 2016


On Saturday, 23 July 2016 at 12:29:45 UTC, rikki cattermole wrote:
> On 24/07/2016 12:27 AM, ParticlePeter wrote:
>> Is there any kind of project or workflow that converts D 
>> (subset) to
>> C/CPP ?
>
> This probably will interest you for ldc: 
> http://stackoverflow.com/questions/5180914/llvm-ir-back-to-human-readable-source-language

Cool, I didn't know that one but I also didn't invest time in 
LLVM till now.
However, this converts bitcode to C/CPP, my guess would be that 
the job can be done much better if the original D source would be 
used in tandem.


More information about the Digitalmars-d-learn mailing list