Lines Matching full:clang
7 <title>Comparing clang to other open source compilers</title>
14 <h1>Clang vs Other Open Source Compilers</h1>
17 always clear to people why we decided to do this. Here we compare clang
27 This will hopefully help you to evaluate whether using clang is a good
38 <li><a href="#gcc">Clang vs GCC</a> (GNU Compiler Collection)</li>
39 <li><a href="#elsa">Clang vs Elsa</a> (Elkhound-based C++ Parser)</li>
40 <li><a href="#pcc">Clang vs PCC</a> (Portable C Compiler)</li>
45 <h2><a name="gcc">Clang vs GCC (GNU Compiler Collection)</a></h2>
48 <p>Pro's of GCC vs clang:</p>
51 <li>GCC supports languages that clang does not aim to, such as Java, Ada,
55 by Clang. For instance, in C mode, GCC supports
62 <p>Pro's of clang vs GCC:</p>
65 <li>The Clang ASTs and design are intended to be <a
70 <li>Clang is designed as an API from its inception, allowing it to be reused
83 reentrant or multi-threadable, etc. Clang has none of these problems.
85 <li>Clang does not implicitly simplify code as it parses it like GCC does.
90 <li>Clang can serialize its AST out to disk and read it back into another
96 <li>Clang is <a href="features.html#performance">much faster and uses far
98 <li>Clang has been designed from the start to provide extremely clear and
102 incorporating various Clang features such as preserving typedefs in
106 clang uses a BSD license,</a> which allows it to be embedded in
108 <li>Clang inherits a number of features from its use of LLVM as a backend,
112 <li><a href="compatibility.html#cxx">Clang's support for C++</a> is more
114 <li>Clang supports
115 <a href="http://clang.llvm.org/docs/LanguageExtensions.html">many language
117 Clang provides attributes for checking thread safety and extended vector
122 <h2><a name="elsa">Clang vs Elsa (Elkhound-based C++ Parser)</a></h2>
125 <p>Pro's of Elsa vs clang:</p>
129 grammar rules. Clang has a very simple and easily hackable parser,
133 <p>Pro's of clang vs Elsa:</p>
136 <li>Clang's C and C++ support is far more mature and practically useful than
140 projects (e.g. Oink), but Oink is apparently dead now too. Clang has a
143 file bugs against Clang and they will often be fixed for you. If you
146 <li>Elsa is not built as a stack of reusable libraries like clang is. It is
149 AST. You can do this in Clang and it is much faster than building an
156 far more space and time than clang.</li>
166 <h2><a name="pcc">Clang vs PCC (Portable C Compiler)</a></h2>
169 <p>Pro's of PCC vs clang:</p>
176 <p>Pro's of clang vs PCC:</p>
180 The clang + llvm communities are very active.</li>