summaryrefslogtreecommitdiffstats
path: root/llvm/docs/FAQ.html
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-08-31 04:26:31 +0000
committerChris Lattner <sabre@nondot.org>2006-08-31 04:26:31 +0000
commitb096190f29e829f9e8209d624e2bef6bebb8f271 (patch)
treed51ab47e58c580a2efbcf95153e8c9b054e812fa /llvm/docs/FAQ.html
parenta24fdaea0b8f3bc4125172540a41c739e546c0f6 (diff)
downloadbcm5719-llvm-b096190f29e829f9e8209d624e2bef6bebb8f271.tar.gz
bcm5719-llvm-b096190f29e829f9e8209d624e2bef6bebb8f271.zip
Add a note about C++ -> C with libstdc++
llvm-svn: 29993
Diffstat (limited to 'llvm/docs/FAQ.html')
-rw-r--r--llvm/docs/FAQ.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/llvm/docs/FAQ.html b/llvm/docs/FAQ.html
index 223e2b4346f..2dffd203ffd 100644
--- a/llvm/docs/FAQ.html
+++ b/llvm/docs/FAQ.html
@@ -541,8 +541,8 @@ C++ support for a processor that does not otherwise have a C++ compiler.
<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 @@ If you want/need it for a certain program, you can enable it by passing
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>
OpenPOWER on IntegriCloud