mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-10 16:24:04 +00:00
Simplified marking code regions with a single <pre> rather than
a (<div>, <pre>) combo. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@61480 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f08bf1193c
commit
0427f7a4af
@ -36,8 +36,9 @@ front-ends are completely different (and much easier!) than those for building
|
|||||||
llvm-gcc3 in the past.</p>
|
llvm-gcc3 in the past.</p>
|
||||||
|
|
||||||
<ol>
|
<ol>
|
||||||
<li><p>Retrieve the appropriate llvm-gcc-4.2-x.y.source.tar.gz archive from the
|
<li><p>Retrieve the appropriate llvm-gcc-4.2-<i>version</i>.source.tar.gz
|
||||||
<a href="http://llvm.org/releases/">llvm web site</a>.</p>
|
archive from the <a href="http://llvm.org/releases/">LLVM web
|
||||||
|
site</a>.</p>
|
||||||
|
|
||||||
<p>It is also possible to download the sources of the llvm-gcc front end
|
<p>It is also possible to download the sources of the llvm-gcc front end
|
||||||
from a read-only mirror using subversion. To check out the 4.2 code
|
from a read-only mirror using subversion. To check out the 4.2 code
|
||||||
@ -109,85 +110,83 @@ top-level <tt>README.LLVM</tt> file, adding ",ada" to EXTRALANGS, for example:
|
|||||||
<li><p>Download the <a href="http://llvm.org/releases/download.html">LLVM source</a>
|
<li><p>Download the <a href="http://llvm.org/releases/download.html">LLVM source</a>
|
||||||
and unpack it:</p>
|
and unpack it:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>wget http://llvm.org/releases/2.4/llvm-2.4.tar.gz
|
wget http://llvm.org/releases/2.4/llvm-2.4.tar.gz
|
||||||
tar xzf llvm-2.4.tar.gz
|
tar xzf llvm-2.4.tar.gz
|
||||||
mv llvm-2.4 llvm</pre>
|
mv llvm-2.4 llvm
|
||||||
</div>
|
</pre>
|
||||||
|
|
||||||
<p>or <a href="GettingStarted.html#checkout">check out the
|
<p>or <a href="GettingStarted.html#checkout">check out the
|
||||||
latest version from subversion</a>:</p>
|
latest version from subversion</a>:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm</pre>
|
||||||
<pre>svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm</pre>
|
|
||||||
</div>
|
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Download the
|
<li><p>Download the
|
||||||
<a href="http://llvm.org/releases/download.html">llvm-gcc-4.2 source</a>
|
<a href="http://llvm.org/releases/download.html">llvm-gcc-4.2 source</a>
|
||||||
and unpack it:</p>
|
and unpack it:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>wget http://llvm.org/releases/2.4/llvm-gcc-4.2-2.4.source.tar.gz
|
wget http://llvm.org/releases/2.4/llvm-gcc-4.2-2.4.source.tar.gz
|
||||||
tar xzf llvm-gcc-4.2-2.4.source.tar.gz
|
tar xzf llvm-gcc-4.2-2.4.source.tar.gz
|
||||||
mv llvm-gcc4.2-2.4.source llvm-gcc-4.2</pre>
|
mv llvm-gcc4.2-2.4.source llvm-gcc-4.2
|
||||||
</div>
|
</pre>
|
||||||
|
|
||||||
<p>or <a href="GettingStarted.html#checkout">check out the
|
<p>or <a href="GettingStarted.html#checkout">check out the
|
||||||
latest version from subversion</a>:</p>
|
latest version from subversion</a>:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2</pre>
|
svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.2/trunk llvm-gcc-4.2
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Make a build directory <tt>llvm-objects</tt> for llvm and make it the
|
<li><p>Make a build directory <tt>llvm-objects</tt> for llvm and make it the
|
||||||
current directory:</p>
|
current directory:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>mkdir llvm-objects
|
mkdir llvm-objects
|
||||||
cd llvm-objects</pre>
|
cd llvm-objects
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
|
<li><p>Configure LLVM (here it is configured to install into <tt>/usr/local</tt>):</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>../llvm/configure --prefix=<b>/usr/local</b></pre>
|
../llvm/configure --prefix=<b>/usr/local</b>
|
||||||
</div>
|
</pre>
|
||||||
|
|
||||||
<p>If you have a multi-compiler setup and the C++ compiler is not the
|
<p>If you have a multi-compiler setup and the C++ compiler is not the
|
||||||
default, then you can configure like this:</p>
|
default, then you can configure like this:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>CXX=<b>PATH_TO_C++_COMPILER</b> ../llvm/configure --prefix=<b>/usr/local</b></pre>
|
CXX=<b>PATH_TO_C++_COMPILER</b> ../llvm/configure --prefix=<b>/usr/local</b>
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Build LLVM with checking enabled (use <tt>ENABLE_OPTIMIZED=1</tt> to
|
<li><p>Build LLVM with checking enabled (use <tt>ENABLE_OPTIMIZED=1</tt> to
|
||||||
build without checking):</p>
|
build without checking):</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>make ENABLE_OPTIMIZED=0</pre>
|
make ENABLE_OPTIMIZED=0
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Install LLVM (optional):</p>
|
<li><p>Install LLVM (optional):</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>make ENABLE_OPTIMIZED=0 install</pre>
|
make ENABLE_OPTIMIZED=0 install
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Make a build directory <tt>llvm-gcc-4.2-objects</tt> for llvm-gcc and make it the
|
<li><p>Make a build directory <tt>llvm-gcc-4.2-objects</tt> for llvm-gcc and make it the
|
||||||
current directory:</p>
|
current directory:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>
|
|
||||||
cd ..
|
cd ..
|
||||||
mkdir llvm-gcc-4.2-objects
|
mkdir llvm-gcc-4.2-objects
|
||||||
cd llvm-gcc-4.2-objects</pre>
|
cd llvm-gcc-4.2-objects
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Configure llvm-gcc (here it is configured to install into <tt>/usr/local</tt>).
|
<li><p>Configure llvm-gcc (here it is configured to install into <tt>/usr/local</tt>).
|
||||||
@ -196,26 +195,25 @@ cd llvm-gcc-4.2-objects</pre>
|
|||||||
Additional languages can be appended to the --enable-languages switch,
|
Additional languages can be appended to the --enable-languages switch,
|
||||||
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
|
for example <tt>--enable-languages=ada,c,c++</tt>.</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>../llvm-gcc-4.2/configure --prefix=<b>/usr/local</b> --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib</pre>
|
../llvm-gcc-4.2/configure --prefix=<b>/usr/local</b> --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib
|
||||||
</div>
|
</pre>
|
||||||
|
|
||||||
<p>If you have a multi-compiler setup, then you can configure like this:</p>
|
<p>If you have a multi-compiler setup, then you can configure like this:</p>
|
||||||
<div class="doc_code">
|
|
||||||
|
|
||||||
<pre>
|
<pre class="doc_code">
|
||||||
export CC=<b>PATH_TO_C_AND_ADA_COMPILER</b>
|
export CC=<b>PATH_TO_C_AND_ADA_COMPILER</b>
|
||||||
export CXX=<b>PATH_TO_C++_COMPILER</b>
|
export CXX=<b>PATH_TO_C++_COMPILER</b>
|
||||||
../llvm-gcc-4.2/configure --prefix=<b>/usr/local</b> --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib</pre>
|
../llvm-gcc-4.2/configure --prefix=<b>/usr/local</b> --enable-languages=ada,c --enable-checking --enable-llvm=$PWD/../llvm-objects --disable-bootstrap --disable-multilib
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
<li><p>Build and install the compiler:</p>
|
<li><p>Build and install the compiler:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>make
|
make
|
||||||
make install</pre>
|
make install
|
||||||
</div>
|
</pre>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
@ -231,11 +229,9 @@ make install</pre>
|
|||||||
To build with support for Fortran, follow the directions in the top-level
|
To build with support for Fortran, follow the directions in the top-level
|
||||||
<tt>README.LLVM</tt> file, adding ",fortran" to EXTRALANGS, for example:</p>
|
<tt>README.LLVM</tt> file, adding ",fortran" to EXTRALANGS, for example:</p>
|
||||||
|
|
||||||
<div class="doc_code">
|
<pre class="doc_code">
|
||||||
<pre>
|
|
||||||
EXTRALANGS=,fortran
|
EXTRALANGS=,fortran
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user