[cfe-dev] Clang tutorial

Eli Friedman eli.friedman at gmail.com
Wed May 20 02:59:56 PDT 2009


On Wed, May 20, 2009 at 12:41 AM, Simone Pellegrini
<spellegrini at dps.uibk.ac.at> wrote:
> I guess the best option is to have a look to clang-cc.cpp but it's
> rather huge, is there any stripped version?

Here's a highly simplified version of clang-cc.cpp that contains the
bare essentials to get things working.  It takes C code from stdin,
and writes LLVM assembly to stdout.  Hopefully, it's a decent starting
point.

-Eli
-------------- next part --------------
A non-text attachment was scrubbed...
Name: clang-cc-simple.cpp
Type: text/x-c++src
Size: 3094 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20090520/15909ef8/attachment.cpp>


More information about the cfe-dev mailing list