]> granicus.if.org Git - clang/commitdiff
Added some text about the ccc script provided by Sanghyeon Seo.
authorTed Kremenek <kremenek@apple.com>
Thu, 10 Jan 2008 04:59:05 +0000 (04:59 +0000)
committerTed Kremenek <kremenek@apple.com>
Thu, 10 Jan 2008 04:59:05 +0000 (04:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@45820 91177308-0d34-0410-b5e6-96231b3b80d8

www/get_started.html

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