[llvm-commits] [llvm] r61143 - /llvm/trunk/docs/FAQ.html
Misha Brukman
brukman+llvm at gmail.com
Wed Dec 17 10:12:01 PST 2008
Author: brukman
Date: Wed Dec 17 12:11:40 2008
New Revision: 61143
URL: http://llvm.org/viewvc/llvm-project?rev=61143&view=rev
Log:
Simplified marking code regions -- no need to use <div> to surround <pre> tags.
Modified:
llvm/trunk/docs/FAQ.html
Modified: llvm/trunk/docs/FAQ.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/FAQ.html?rev=61143&r1=61142&r2=61143&view=diff
==============================================================================
--- llvm/trunk/docs/FAQ.html (original)
+++ llvm/trunk/docs/FAQ.html Wed Dec 17 12:11:40 2008
@@ -234,11 +234,9 @@
<li><p>Run <tt>configure</tt> with an alternative <tt>PATH</tt> that is
correct. In a Borne compatible shell, the syntax would be:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% PATH=[the path without the bad program] ./configure ...
</pre>
-</div>
<p>This is still somewhat inconvenient, but it allows <tt>configure</tt>
to do its work without having to adjust your <tt>PATH</tt>
@@ -278,9 +276,9 @@
can just run the following command in the top level directory of your object
tree:</p>
-<div class="doc_code">
-<pre>% ./config.status <relative path to Makefile></pre>
-</div>
+<pre class="doc_code">
+% ./config.status <relative path to Makefile>
+</pre>
<p>If the Makefile is new, you will have to modify the configure script to copy
it over.</p>
@@ -315,18 +313,16 @@
<p>For example, if you built LLVM with the command:</p>
-<div class="doc_code">
-<pre>% gmake ENABLE_PROFILING=1</pre>
-</div>
+<pre class="doc_code">
+% gmake ENABLE_PROFILING=1
+</pre>
<p>...then you must run the tests with the following commands:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% cd llvm/test
% gmake ENABLE_PROFILING=1
</pre>
-</div>
</div>
@@ -365,25 +361,21 @@
<div class="answer">
<p>If the error is of the form:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
gmake[2]: *** No rule to make target `/path/to/somefile', needed by
`/path/to/another/file.d'.<br>
Stop.
</pre>
-</div>
<p>This may occur anytime files are moved within the Subversion repository or
removed entirely. In this case, the best solution is to erase all
<tt>.d</tt> files, which list dependencies for source files, and rebuild:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% cd $LLVM_OBJ_DIR
% rm -f `find . -name \*\.d`
% gmake
</pre>
-</div>
<p>In other cases, it may be necessary to run <tt>make clean</tt> before
rebuilding.</p>
@@ -540,13 +532,11 @@
The only way this can happen is if you haven't installed the runtime library. To
correct this, do:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% cd llvm/runtime
% make clean ; make install-bytecode
</pre>
</div>
-</div>
<div class="question">
<p>
@@ -583,21 +573,17 @@
<ol>
<li><p>Compile your program as normal with llvm-g++:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% llvm-g++ x.cpp -o program
</pre>
-</div>
<p>or:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% llvm-g++ a.cpp -c
% llvm-g++ b.cpp -c
% llvm-g++ a.o b.o -o program
</pre>
-</div>
<p>With llvm-gcc3, this will generate program and program.bc. The .bc
file is the LLVM version of the program all linked together.</p></li>
@@ -605,19 +591,15 @@
<li><p>Convert the LLVM code to C code, using the LLC tool with the C
backend:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% llc -march=c program.bc -o program.c
-</pre>
-</div></li>
+</pre></li>
<li><p>Finally, compile the C file:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
% cc x.c
-</pre>
-</div></li>
+</pre></li>
</ol>
@@ -708,11 +690,9 @@
a value that is not defined. You can get these if you do not initialize a
variable before you use it. For example, the C function:</p>
-<div class="doc_code">
-<pre>
+<pre class="doc_code">
int X() { int i; return i; }
</pre>
-</div>
<p>Is compiled to "<tt>ret i32 undef</tt>" because "<tt>i</tt>" never has
a value specified for it.</p>
More information about the llvm-commits
mailing list