[cfe-commits] r45820 - /cfe/trunk/www/get_started.html

Ted Kremenek kremenek at apple.com
Wed Jan 9 20:59:05 PST 2008


Author: kremenek
Date: Wed Jan  9 22:59:05 2008
New Revision: 45820

URL: http://llvm.org/viewvc/llvm-project?rev=45820&view=rev
Log:
Added some text about the ccc script provided by Sanghyeon Seo.

Modified:
    cfe/trunk/www/get_started.html

Modified: cfe/trunk/www/get_started.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/get_started.html?rev=45820&r1=45819&r2=45820&view=diff

==============================================================================
--- cfe/trunk/www/get_started.html (original)
+++ cfe/trunk/www/get_started.html Wed Jan  9 22:59:05 2008
@@ -187,6 +187,30 @@
          ret
 </pre>
 
+<h3>GCC "Emulation" Driver</h3>
+
+While the <tt>clang</tt> executable is a compiler driver that can perform code
+generation, program analysis, and other actions, it is not designed to be a
+drop-in replacement for GCC's <tt>cc</tt>. There is interest in developing such
+a driver for clang, but in the interim the clang source tree includes a Python
+script <tt>ccc</tt> in the <tt>utils</tt> subdirectory that provides some of
+this functionality (the script is intended to be used where GCC's <tt>cc</tt>
+could be used). It is currently a work in progress, and eventually will likely
+be replaced by a more complete driver.
+
+<p>Example use:</p>
+
+<pre class="code">
+$ <b>ccc t.c</b>
+clang -emit-llvm-bc -o t.o -U__GNUC__ t.c
+llvm-ld -native -o a.out t.o
+$ <b>ls</b>
+a.out a.out.bc t.c t.o
+</pre>
+  
+
+
+
 </div>
 </body>
 </html>





More information about the cfe-commits mailing list