<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 16 Feb 2010, at 19:23 , Charles Davis wrote:</div><blockquote type="cite"><div>There's several different objects you need to look into creating:<br><br>- Preprocessing is handled by a Preprocessor object.<br>- If you want to compile C code, you need to create an ASTContext (in<br>addition to a Preprocessor).<br>- The Sema (SEMAntic analyzer) object handles semantic checking, etc.<br>- The CodeGen library turns a fully-annotated AST into LLVM IR, which<br>you can then pass to LLVM libraries (like LLVM CodeGen and the Target<br>family) to generate executable code.<br>- The Frontend library handles much of the tedious process of setting up<br>these objects for you. In particular, look into the "CompilerInvocation"<br>and "CompilerInstance" classes.<br><br>HTH<br><br>Chip<br></div></blockquote></div><br><div>Chip,</div><div>Thank you for the insight. I shall look in to it shortly.</div><div><br></div><div><br></div><div><span class="Apple-style-span" style="color: rgb(128, 128, 128); font-size: 9px; "><font color="silver"><span style="font-size: 10pt; color: silver; font-family: Arial; "><u><font size="1"> <br></font></u><font color="#808080"><br></font></span></font><span style="font-size: 10pt; font-family: Arial; "><span style="font-size: 10pt; font-family: Arial; ">Glenn R. Martin</span></span></span></div></body></html>