[llvm-commits] CVS: llvm/docs/FAQ.html

Chris Lattner lattner at cs.uiuc.edu
Wed Aug 30 21:26:46 PDT 2006



Changes in directory llvm/docs:

FAQ.html updated: 1.39 -> 1.40
---
Log message:

Add a note about C++ -> C with libstdc++


---
Diffs of the changes:  (+12 -3)

 FAQ.html |   15 ++++++++++++---
 1 files changed, 12 insertions(+), 3 deletions(-)


Index: llvm/docs/FAQ.html
diff -u llvm/docs/FAQ.html:1.39 llvm/docs/FAQ.html:1.40
--- llvm/docs/FAQ.html:1.39	Mon Aug 14 19:43:35 2006
+++ llvm/docs/FAQ.html	Wed Aug 30 23:26:31 2006
@@ -541,8 +541,8 @@
 <p>or:</p>
 
 <div class="doc_code">
- llvm-g++ a.cpp -c
- llvm-g++ b.cpp -c
+ llvm-g++ a.cpp -c<br>
+ llvm-g++ b.cpp -c<br>
  llvm-g++ a.o b.o -o program
 </div>
 
@@ -566,6 +566,15 @@
 use setjmp/longjmp to implement exception support that is correct but
 relatively slow.
 </p>
+
+<p>Also note: this specific sequence of commands won't work if you use a 
+function defined in the C++ runtime library (or any other C++ library).  To 
+access an external C++ library, you must manually 
+compile libstdc++ to LLVM bytecode, statically link it into your program, then
+use the commands above to convert the whole result into C code.  Alternatively,
+you can compile the libraries and your application into two different chunks
+of C code and link them.</p>
+
 </div>
 
 
@@ -683,7 +692,7 @@
   src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
 
   <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
-  Last modified: $Date: 2006/08/15 00:43:35 $
+  Last modified: $Date: 2006/08/31 04:26:31 $
 </address>
 
 </body>






More information about the llvm-commits mailing list