2004-05-13 02:49:47 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
|
|
|
|
"http://www.w3.org/TR/html4/strict.dtd">
|
2003-10-23 09:48:33 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
2004-05-13 02:49:47 +08:00
|
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
|
|
<link rel="stylesheet" href="llvm.css" type="text/css" media="screen">
|
2007-02-14 15:42:12 +08:00
|
|
|
<title>Building the LLVM C/C++ Front-End</title>
|
2003-10-23 09:48:33 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
|
|
<div class="doc_title">
|
2007-02-14 15:42:12 +08:00
|
|
|
Building the LLVM C/C++ Front-End
|
2003-10-23 09:48:33 +08:00
|
|
|
</div>
|
2003-10-22 05:58:38 +08:00
|
|
|
|
2003-11-13 04:47:30 +08:00
|
|
|
<ol>
|
2007-02-14 15:42:12 +08:00
|
|
|
<li><a href="#instructions">Building llvm-gcc 4 from Source</a></li>
|
2004-06-02 02:13:05 +08:00
|
|
|
<li><a href="#license">License Information</a></li>
|
2003-11-13 04:47:30 +08:00
|
|
|
</ol>
|
|
|
|
|
2004-05-24 05:07:27 +08:00
|
|
|
<div class="doc_author">
|
2007-02-14 15:42:12 +08:00
|
|
|
<p>Written by the LLVM Team</p>
|
2003-11-13 04:47:30 +08:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
<div class="doc_section">
|
2007-02-14 15:42:12 +08:00
|
|
|
<a name="instructions">Building llvm-gcc 4 from Source</a>
|
2003-10-23 09:48:33 +08:00
|
|
|
</div>
|
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
|
|
|
<div class="doc_text">
|
2006-07-12 04:47:00 +08:00
|
|
|
|
|
|
|
<p>This section describes how to aquire and build llvm-gcc4, which is based on
|
2006-11-16 17:31:19 +08:00
|
|
|
the GCC 4.0.1 front-end. This front-end supports C, C++, Objective-C, and
|
2006-07-12 04:47:00 +08:00
|
|
|
Objective-C++. Note that the instructions for building this front-end are
|
2007-02-14 15:42:12 +08:00
|
|
|
completely different (and much easier!) than those for building llvm-gcc3 in
|
|
|
|
the past.</p>
|
2006-07-12 04:47:00 +08:00
|
|
|
|
2003-10-22 05:58:38 +08:00
|
|
|
<ol>
|
2006-11-16 17:31:19 +08:00
|
|
|
<li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the
|
2007-02-14 15:42:12 +08:00
|
|
|
<a href="http://llvm.org/releases/">llvm web site</a>.</p>
|
2006-06-17 07:34:49 +08:00
|
|
|
|
2006-11-16 17:31:19 +08:00
|
|
|
<p>It is also possible to download the sources of the llvm-gcc4 front end
|
|
|
|
from a read-only mirror using subversion. To check out the code the
|
|
|
|
first time use:</p>
|
2006-06-17 07:34:49 +08:00
|
|
|
|
2006-11-16 17:31:19 +08:00
|
|
|
<div class="doc_code">
|
|
|
|
<pre>
|
2007-07-23 11:56:42 +08:00
|
|
|
svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk <i>dst-directory</i>
|
2006-11-16 17:31:19 +08:00
|
|
|
</pre>
|
|
|
|
</div>
|
2006-06-17 07:34:49 +08:00
|
|
|
|
2006-11-16 17:31:19 +08:00
|
|
|
<p>After that, the code can be be updated in the destination directory
|
|
|
|
using:</p>
|
|
|
|
|
|
|
|
<div class="doc_code">
|
|
|
|
<pre>svn update</pre>
|
|
|
|
</div>
|
2006-06-17 07:34:49 +08:00
|
|
|
|
2006-11-16 17:31:19 +08:00
|
|
|
<p>The mirror is brought up to date every evening.</p></li>
|
2006-07-12 04:47:00 +08:00
|
|
|
|
2006-11-16 17:31:19 +08:00
|
|
|
<li>Follow the directions in the top-level <tt>README.LLVM</tt> file for
|
|
|
|
up-to-date instructions on how to build llvm-gcc4.</li>
|
2006-07-12 04:47:00 +08:00
|
|
|
</ol>
|
2006-11-16 17:31:19 +08:00
|
|
|
|
2006-07-12 04:47:00 +08:00
|
|
|
</div>
|
2003-12-19 00:43:17 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
<div class="doc_section">
|
|
|
|
<a name="license">License Information</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="doc_text">
|
|
|
|
<p>
|
|
|
|
The LLVM GCC frontend is licensed to you under the GNU General Public License
|
|
|
|
and the GNU Lesser General Public License. Please see the files COPYING and
|
|
|
|
COPYING.LIB for more details.
|
|
|
|
</p>
|
|
|
|
|
|
|
|
<p>
|
2006-07-12 04:47:00 +08:00
|
|
|
More information is <a href="FAQ.html#license">available in the FAQ</a>.
|
2003-12-19 00:43:17 +08:00
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
2003-10-22 05:58:38 +08:00
|
|
|
<!-- *********************************************************************** -->
|
|
|
|
|
2003-10-29 05:09:29 +08:00
|
|
|
<hr>
|
2004-05-13 02:49:47 +08:00
|
|
|
<address>
|
|
|
|
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img
|
|
|
|
src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
|
|
|
|
<a href="http://validator.w3.org/check/referer"><img
|
|
|
|
src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
|
|
|
|
|
2006-03-14 13:39:39 +08:00
|
|
|
<a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
|
2003-10-29 05:09:29 +08:00
|
|
|
Last modified: $Date$
|
2004-05-13 02:49:47 +08:00
|
|
|
</address>
|
2003-10-22 05:58:38 +08:00
|
|
|
|
2003-10-23 09:48:33 +08:00
|
|
|
</body>
|
|
|
|
</html>
|