<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><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 <macayaven@gmail.com><br><b><span style="font-weight: bold;">À :</span></b> llvmdev@cs.uiuc.edu<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><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></blockquote>
</div><br>




      </body></html>