blob: 97162ddaa243e51b85f8fe08ef3adbf6c0ad1734 [file] [log] [blame]
Kevinaef89fc2007-10-06 01:28:23 +00001<!-- 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">
Kevina5dc2352007-10-05 21:17:52 +00003<html>
4<head>
Kevinaef89fc2007-10-06 01:28:23 +00005 <META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Kevina5dc2352007-10-05 21:17:52 +00006 <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
Bill Wendling3c80a512007-10-06 01:44:57 +000036 <li>Library based architecture with finely crafted C++ API's
Kevina5dc2352007-10-05 21:17:52 +000037 <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.
Kevin13043a42007-10-05 21:44:03 +000043 <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.
Kevina5dc2352007-10-05 21:17:52 +000045 <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>