[cfe-dev] Using clang to translate a program in c++ to C or other languages

Manuel Klimek klimek at google.com
Thu Jan 17 23:26:20 PST 2013


On Thu, Jan 17, 2013 at 2:58 PM, Miguel Aguilar <
miguel.aguilar at ice.rwth-aachen.de> wrote:

> Hi,
>
> I would like to know the possible approaches to translate a program in C++
> to another language such as C using Clang. Should I walk in the AST and
> emit the code or should I create a new AST in the other language for
> example?.
>

The general advice I've seen given most often on this list is to walk the
AST and emit the code.

Cheers,
/Manuel


>
> Thanks in advanced,
>
> Miguel
> ______________________________**_________________
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/cfe-dev<http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130118/89e5f65f/attachment.html>


More information about the cfe-dev mailing list