Kevin | 8e8f64e | 2007-10-06 21:28:47 +0000 | [diff] [blame] | 1 | <!-- Material used from: HTML 4.01 specs: http://www.w3.org/TR/html401/ -->
|
Chris Lattner | 29754e6 | 2007-12-09 08:17:09 +0000 | [diff] [blame^] | 2 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
| 3 | "http://www.w3.org/TR/html4/strict.dtd">
|
Kevin | 8e8f64e | 2007-10-06 21:28:47 +0000 | [diff] [blame] | 4 | <html>
|
| 5 | <head>
|
Chris Lattner | 29754e6 | 2007-12-09 08:17:09 +0000 | [diff] [blame^] | 6 | <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
|
| 7 | <title>"clang" C Language Family Frontend for LLVM</title>
|
| 8 | <link type="text/css" rel="stylesheet" href="menu.css" />
|
| 9 | <link type="text/css" rel="stylesheet" href="content.css" />
|
Kevin | 8e8f64e | 2007-10-06 21:28:47 +0000 | [diff] [blame] | 10 | </head>
|
| 11 | <body>
|
Chris Lattner | 29754e6 | 2007-12-09 08:17:09 +0000 | [diff] [blame^] | 12 | <!--#include virtual="menu.html.incl"-->
|
| 13 | <div id="content">
|
| 14 |
|
| 15 | <h1>clang: a C language family frontend for LLVM</h1>
|
| 16 |
|
| 17 | <h2>About</h2>
|
| 18 |
|
| 19 | <p>The goal of the Clang project is to create a new <a
|
| 20 | href="http://llvm.org/svn/llvm-project/cfe/trunk/LICENSE.TXT">BSD
|
| 21 | licensed</a> C, C++, & ObjC front-end for the <a
|
| 22 | href="http://www.llvm.org/">LLVM</a> compiler.</p>
|
| 23 |
|
| 24 | <p>In the context of this website, the term Clang actually refers to two
|
| 25 | things:</p>
|
| 26 |
|
| 27 | <ol>
|
| 28 | <li> A "code name" for the LLVM compiler front-end.</li>
|
| 29 | <li> A specific library in the LLVM front-end -- in particular the
|
| 30 | "driver" that makes all the other libraries work together.</li>
|
| 31 | </ol>
|
| 32 |
|
| 33 | <p>The developers of Clang include contributers from Apple and numerous other volunteers.
|
| 34 | <h2>Why?</h2>
|
| 35 | <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 motivations for starting work on a new C/C++/ObjC front-end that could meet these needs.
|
| 36 | <p>An excellent introduction to Clang can be found in the following video lectures:
|
| 37 | <ul>
|
| 38 | <li><a href="clang_video-05-25-2007.html">Clang Introduction</a>
|
| 39 | <li><a href="clang_video-07-25-2007.html">Features and Performance of Clang</a>
|
| 40 | </ul>
|
| 41 | <h2>Features/Goals</h2>
|
| 42 | Some of the goals for the project include the following:
|
| 43 | <ul>
|
| 44 | <li>Real-world, production quality compiler.</li>
|
| 45 | <li>A single unified parser for C/ObjC/C++</li>
|
| 46 | <li>Language conformance with C, ObjC, C++ (including variants, like C90, C99, etc)</li>
|
| 47 | <li>GCC compatibility (supports GCC extensions, but allow them to be disabled)</li>
|
| 48 | <li>Library based architecture with finely crafted C++ APIs</li>
|
| 49 | <li>High performance</li>
|
| 50 | <li>Design for integration with IDEs as well as code generation with <a href="http://llvm.org">LLVM</a>.</li>
|
| 51 | <li><a href="features.html#expressivediags">Expressive diagnostics</a></li>
|
| 52 | <li>BSD License</li>
|
| 53 | </ul>
|
| 54 | 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.
|
| 55 | <h2>Try Clang</h2>
|
| 56 | 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. Note that clang is still early in development. If you are looking for source analysis or source-to-source transformation tools, clang is probably a great solution for you. If you want to use it as a drop in C compiler, it is not yet ready.
|
| 57 | <h2>Get Involved</h2>
|
| 58 | If you are interested in working on Clang, then check out the <a href="get_involved.html">Get Involved</a> section.
|
| 59 | </div>
|
Kevin | 8e8f64e | 2007-10-06 21:28:47 +0000 | [diff] [blame] | 60 | </body>
|
Kevin | a5dc235 | 2007-10-05 21:17:52 +0000 | [diff] [blame] | 61 | </html> |