Kevin | aef89fc | 2007-10-06 01:28:23 +0000 | [diff] [blame^] | 1 | <!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
|
| 2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
Kevin | a5dc235 | 2007-10-05 21:17:52 +0000 | [diff] [blame] | 3 | <html>
|
| 4 | <head>
|
Kevin | aef89fc | 2007-10-06 01:28:23 +0000 | [diff] [blame^] | 5 | <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
Kevin | a5dc235 | 2007-10-05 21:17:52 +0000 | [diff] [blame] | 6 | <title>Clang c-lang parser for LLVM</title>
|
| 7 | <link type="text/css" rel="stylesheet" href="menu.css" />
|
| 8 | <link type="text/css" rel="stylesheet" href="content.css" />
|
| 9 | </head>
|
| 10 | <body>
|
| 11 | <!--#include virtual="menu.html.incl"-->
|
| 12 | <div id="content">
|
| 13 | <h1>Clang: a C language front-end for LLVM</h1>
|
| 14 | <h2>About</h2>
|
| 15 | <p>The goal of the Clang project is to create a new <a href="http://llvm.org/svn/llvm-project/cfe/trunk/LICENSE.TXT">BSD Licensed</a> C, C++, & ObjC front-end for the <a href="http://www.llvm.org/">LLVM</a> compiler.
|
| 16 | <br><br>
|
| 17 | <p>In the context of this website, the term Clang actually refers to two things:
|
| 18 | <p>1) A "code name" for the LLVM compiler front-end.
|
| 19 | <p>2) A specific library in the LLVM front-end -- in particular the "driver" that makes all the other libraries work together.
|
| 20 | <br><br>
|
| 21 | <p>The developers of Clang include contributers from Apple and numerous other volunteers.
|
| 22 | <h2>Why?</h2>
|
| 23 | <p>The development of a new front-end was started out of a need -- a need for a compiler that allows better diagnostics, better integration with IDEs, a license that is compatible with commercial products, and a compiler that is easier to develop and maintain. All of these were motiviations for starting work on a new C/C++/ObjC front-end that could meet these needs.
|
| 24 | <p>An excellent introduction to Clang can be found in the following video lectures:
|
| 25 | <ul>
|
| 26 | <li><a href="clang_video-05-25-2007.html">Clang Introduction</a>
|
| 27 | <li><a href="clang_video-07-25-2007.html">Features and Performance of Clang</a>
|
| 28 | </ul>
|
| 29 | <h2>Features/Goals</h2>
|
| 30 | Some of the goals for the project include the following:
|
| 31 | <ul>
|
| 32 | <li>Unified parser for C-based languages
|
| 33 | <li>Language conformance with C99, ObjC, C++
|
| 34 | <li>Real-world, production quality compiler
|
| 35 | <li>GCC compatibility
|
| 36 | <li>Library based architecture with finely crafted C++ APIs
|
| 37 | <li>High performance
|
| 38 | <li>Better integration with IDEs
|
| 39 | <li>Expressive diagnostics
|
| 40 | <li>BSD License
|
| 41 | </ul>
|
| 42 | Of course this is only a rough outline of the goals and features of Clang. To get a true sense of what the new LLVM front-end is all about, as well as why you might want to considering using it, see the <a href="features.html">Features</a> section.
|
Kevin | 13043a4 | 2007-10-05 21:44:03 +0000 | [diff] [blame] | 43 | <h2>Try Clang</h2>
|
| 44 | If you are a compiler developer and want to try out Clang, then build instructions are available on the <a href="get_involved.html#build">Get Involved</a> page.
|
Kevin | a5dc235 | 2007-10-05 21:17:52 +0000 | [diff] [blame] | 45 | <h2>Get Involved</h2>
|
| 46 | If you are interested in working on Clang, then check out the <a href="get_involved.html">Get Involved</a> section.
|
| 47 | </div>
|
| 48 | </body>
|
| 49 | </html> |