summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2006-07-27 05:44:41 +0000
committerReid Spencer <rspencer@reidspencer.com>2006-07-27 05:44:41 +0000
commit6b78950465f288620ee92435d3797736d57cb75c (patch)
treea2510cada3b242b5767e7a64f75ac93a564422ea
parent923eac012cd041b1b65c8bef88c833579ca8cd39 (diff)
downloadllvm-6b78950465f288620ee92435d3797736d57cb75c.tar.gz
Merge documentation change from HEAD.
llvm-svn: 29331
-rw-r--r--llvm/docs/GettingStarted.html41
1 files changed, 41 insertions, 0 deletions
diff --git a/llvm/docs/GettingStarted.html b/llvm/docs/GettingStarted.html
index 9f6ef59b7fda..6587987060a8 100644
--- a/llvm/docs/GettingStarted.html
+++ b/llvm/docs/GettingStarted.html
@@ -31,6 +31,7 @@
<li><a href="#installcf">Install the GCC Front End</a>
<li><a href="#config">Local LLVM Configuration</a>
<li><a href="#compile">Compiling the LLVM Suite Source Code</a>
+ <li><a href="#cross-compile">Compiling LLVM As A Cross-Compiler</a>
<li><a href="#objfiles">The Location of LLVM Object Files</a>
<li><a href="#optionalconfig">Optional Configuration Items</a>
</ol></li>
@@ -988,6 +989,46 @@ that directory that is out of date.</p>
<!-- ======================================================================= -->
<div class="doc_subsection">
+ <a name="cross-compile">Compiling LLVM As A Cross-compiler</a>
+</div>
+
+<div class="doc_text">
+ <p>LLVM can be built as a cross-compiler, however some additional steps are
+ required.<sup><a href="#ccn_1">1</a></sup> To build a cross-compiler, use
+ these instructions:</p>
+ <ol>
+ <li>Configure and build LLVM Suite as a native compiler. You will need
+ just <tt>TableGen</tt> from that build.
+ <ul>
+ <li>If you have <tt>$LLVM_OBJ_ROOT=$LLVM_SRC_ROOT</tt> just execute
+ <tt>make -C utils/TableGen</tt> after configuring.</li>
+ <li>Otherwise you will need to monitor building process and terminate
+ it just after <tt>TableGen</tt> was built.</li>
+ </ul>
+ </li>
+ <li>Copy the TableGen binary to somewhere safe (out of your build tree).
+ </li>
+ <li>Configure LLVM to build as a cross-compiler. To do this, supply the
+ configure script with <tt>--build</tt> and <tt>--host</tt> options that
+ are different. The values of these options must be legal target triples and
+ should specify a processor for which LLVM supports code generation.</li>
+ <li>Put the saved <tt>TableGen</tt> executable into the
+ into <tt>$LLVM_OBJ_ROOT/{BUILD_TYPE}/bin</tt> directory (e.g. into
+ <tt>.../Release/bin</tt> for a Release build).</li>
+ <li>Build LLVM as usual.</li>
+ </ol>
+ <p><b>Notes:</b></p>
+ <div class="doc_notes">
+ <ol>
+ <li><a name="ccn_1">Cross-compiling</a> was tested only with Linux as
+ build platform and Windows as host using mingw32 cross-compiler. Other
+ combinations have not been tested.</li>
+ </ol>
+ </div>
+</div>
+
+<!-- ======================================================================= -->
+<div class="doc_subsection">
<a name="objfiles">The Location of LLVM Object Files</a>
</div>