blob: 7bf3e5f6948dc725603f0f46ebfeaff5219f3511 [file] [log] [blame]
<!-- Material used from: HTML 4.01 specs: -->
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>"clang" C Language Family Frontend for LLVM</title>
<link type="text/css" rel="stylesheet" href="menu.css">
<link type="text/css" rel="stylesheet" href="content.css">
<!--#include virtual="menu.html.incl"-->
<div id="content">
<h1>clang: a C language family frontend for LLVM</h1>
<p>The goal of the Clang project is to create a new C, C++, Objective C and
Objective C++ front-end for the <a href="">LLVM</a>
compiler. You can <a href="get_started.html">get and build</a> the source
<h2 id="goals">Features and Goals</h2>
<p>Some of the goals for the project include the following:</p>
<p><b><a href="features.html#enduser">End-User Features</a></b>:</p>
<li>Fast compiles and low memory use</li>
<li>Expressive diagnostics (<a href="diagnostics.html">examples</a>)</li>
<li>GCC compatibility</li>
<p><b><a href="features.html#applications">Utility and
<li>Modular library based architecture</li>
<li>Support diverse clients (refactoring, static analysis, code generation,
<li>Allow tight integration with IDEs</li>
<li>Use the LLVM 'BSD' License</li>
<p><b><a href="features.html#design">Internal Design and
<li>A real-world, production quality compiler</li>
<li>A simple and hackable code base</li>
<li>A single unified parser for C, Objective C, C++, and Objective C++</li>
<li>Conformance with C/C++/ObjC and their variants</li>
<p>Of course this is only a rough outline of the goals and features of
Clang. To get a true sense of what it is all about, see the <a
href="features.html">Features</a> section, which breaks
each of these down and explains them in more detail.</p>
<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
nimble compiler that is easy to develop and maintain. All of these were
motivations for starting work on a new front-end that could
meet these needs.</p>
<p>A good (but quite dated) introduction to Clang can be found in the
following video lectures:</p>
<li><a href="clang_video-05-25-2007.html">Clang Introduction</a>
(May 2007)</li>
<li><a href="clang_video-07-25-2007.html">Features and Performance of
Clang</a> (July 2007)</li>
<p>For a more detailed comparison between Clang and other compilers, please
see the <a href="comparison.html">clang comparison page</a>.</p>
<h2>Current Status</h2>
<p>Clang is still under heavy development. Clang is considered to
be a production quality C and Objective-C compiler when targetting
X86-32 and X86-64 (other targets may have caveats, but are usually
easy to fix). If you are looking for source analysis or
source-to-source transformation tools, clang is probably a great
solution for you. Clang's C++ support is currently beta quality,
but is rapidly maturing: see the <a
href="cxx_status.html">C++ status</a> page for more
<h2>Get it and get involved!</h2>
<p>Start by <a href="get_started.html">getting the code, building it, and
playing with it</a>. This will show you the sorts of things we can do
today and will let you have the "clang experience" first hand: hopefully
it will "resonate" with you. :)</p>
<p>Once you've done that, please consider <a href="get_involved.html">getting
involved in the clang community</a>. The clang developers include numerous
volunteer contributors with a variety of backgrounds. If you're
interested in
following the development of clang, signing up for a mailing list is a good
way to learn about how the project works.</p>