[cfe-dev] Clang Library

Glenn R. Martin lifewarped at yahoo.com
Tue Feb 16 16:57:58 PST 2010


On 16 Feb 2010, at 19:23 , Charles Davis wrote:
> There's several different objects you need to look into creating:
> 
> - Preprocessing is handled by a Preprocessor object.
> - If you want to compile C code, you need to create an ASTContext (in
> addition to a Preprocessor).
> - The Sema (SEMAntic analyzer) object handles semantic checking, etc.
> - The CodeGen library turns a fully-annotated AST into LLVM IR, which
> you can then pass to LLVM libraries (like LLVM CodeGen and the Target
> family) to generate executable code.
> - The Frontend library handles much of the tedious process of setting up
> these objects for you. In particular, look into the "CompilerInvocation"
> and "CompilerInstance" classes.
> 
> HTH
> 
> Chip

Chip,
Thank you for the insight. I shall look in to it shortly.


                                                                          

Glenn R. Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20100216/63f18ea6/attachment.html>


More information about the cfe-dev mailing list