Thanks for your answer Matthieu! I will check out TXL as you say. I have been reading it's documentation and it seems to provide the functionality I need.<br>
<br>
Greetings and thanks again.<br><br><div class="gmail_quote">On Thu, Oct 21, 2010 at 4:27 AM, Matthieu Wipliez <span dir="ltr"><<a href="mailto:mwipliez@yahoo.fr">mwipliez@yahoo.fr</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><div>Hello Carlos,<br><br>I don't think so.<br>LLVM is not a source-to-source translator, but an optimizing compiler based on a portable, typed, assembly-like intermediate representation. One of the primary goals of LLVM is to generate optimized object code on a variety of platforms.<br>
Even if you do not use any optimizations, your C++ code would still need to be lowered to LLVM, which makes it very hard to get the same code back (if at all possible).<br>Maybe something along the lines of TXL would be more appropriate for what you want to do?<br>
<br>Matthieu<br></div><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><div style="font-family: verdana,helvetica,sans-serif; font-size: 10pt;"><br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;">
<font face="Tahoma" size="2"><b><span style="font-weight: bold;">De :</span></b> Carlos Crespo <<a href="mailto:macayaven@gmail.com" target="_blank">macayaven@gmail.com</a>><br><b><span style="font-weight: bold;">À :</span></b> <a href="mailto:llvmdev@cs.uiuc.edu" target="_blank">llvmdev@cs.uiuc.edu</a><br>
<b><span style="font-weight: bold;">Envoyé le :</span></b> Mer 20 octobre 2010, 22h 57min 07s<br><b><span style="font-weight: bold;">Objet :</span></b> [LLVMdev] Source to source translation.<br></font><div class="im"><br>
Hello,<br><br>I'm trying to do a source to source translation from C++ code to C++ code. I want the output to contains some automatically inserted annotations, and the rest of the code exactly the same as it was before the processing. Is this possible with llvm?<br>
<br>Thanks.<br>
</div></div></div></blockquote>
</div><br>
</div></blockquote></div><br>