blob: c9b48f42740a9b6c7e0d8af037c2f1d85fe90fd2 [file] [log] [blame]
Misha Brukman6a2b3102004-05-12 18:49:47 +00001<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
2 "http://www.w3.org/TR/html4/strict.dtd">
Misha Brukman83bd33a2003-10-23 01:48:33 +00003<html>
4<head>
Misha Brukman6a2b3102004-05-12 18:49:47 +00005 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
6 <link rel="stylesheet" href="llvm.css" type="text/css" media="screen">
Chris Lattnerad85ba42007-02-14 07:42:12 +00007 <title>Building the LLVM C/C++ Front-End</title>
Misha Brukman83bd33a2003-10-23 01:48:33 +00008</head>
9<body>
Brian Gaeke46079d22003-10-21 21:58:38 +000010
Misha Brukman83bd33a2003-10-23 01:48:33 +000011<div class="doc_title">
Chris Lattnerad85ba42007-02-14 07:42:12 +000012 Building the LLVM C/C++ Front-End
Misha Brukman83bd33a2003-10-23 01:48:33 +000013</div>
Brian Gaeke46079d22003-10-21 21:58:38 +000014
Brian Gaeke7af03e92003-11-12 20:47:30 +000015<ol>
Chris Lattnerad85ba42007-02-14 07:42:12 +000016 <li><a href="#instructions">Building llvm-gcc 4 from Source</a></li>
Chris Lattner6a615ad2004-06-01 18:13:05 +000017 <li><a href="#license">License Information</a></li>
Brian Gaeke7af03e92003-11-12 20:47:30 +000018</ol>
19
Chris Lattner7911ce22004-05-23 21:07:27 +000020<div class="doc_author">
Chris Lattnerad85ba42007-02-14 07:42:12 +000021 <p>Written by the LLVM Team</p>
Brian Gaeke7af03e92003-11-12 20:47:30 +000022</div>
23
24<!-- *********************************************************************** -->
25<div class="doc_section">
Chris Lattnerad85ba42007-02-14 07:42:12 +000026 <a name="instructions">Building llvm-gcc 4 from Source</a>
Misha Brukman83bd33a2003-10-23 01:48:33 +000027</div>
28<!-- *********************************************************************** -->
29
30<div class="doc_text">
Chris Lattner810ad8c2006-07-11 20:47:00 +000031
32<p>This section describes how to aquire and build llvm-gcc4, which is based on
Bill Wendling0ca558f2006-11-16 09:31:19 +000033the GCC 4.0.1 front-end. This front-end supports C, C++, Objective-C, and
Chris Lattner810ad8c2006-07-11 20:47:00 +000034Objective-C++. Note that the instructions for building this front-end are
Chris Lattnerad85ba42007-02-14 07:42:12 +000035completely different (and much easier!) than those for building llvm-gcc3 in
36the past.</p>
Chris Lattner810ad8c2006-07-11 20:47:00 +000037
Brian Gaeke46079d22003-10-21 21:58:38 +000038<ol>
Bill Wendling0ca558f2006-11-16 09:31:19 +000039 <li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the
Chris Lattnerad85ba42007-02-14 07:42:12 +000040 <a href="http://llvm.org/releases/">llvm web site</a>.</p>
Jim Laskeye9493d32006-06-16 23:34:49 +000041
Bill Wendling0ca558f2006-11-16 09:31:19 +000042 <p>It is also possible to download the sources of the llvm-gcc4 front end
43 from a read-only mirror using subversion. To check out the code the
44 first time use:</p>
Jim Laskeye9493d32006-06-16 23:34:49 +000045
Bill Wendling0ca558f2006-11-16 09:31:19 +000046<div class="doc_code">
47<pre>
Bill Wendling0dafa8d2007-07-23 03:56:42 +000048svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk <i>dst-directory</i>
Bill Wendling0ca558f2006-11-16 09:31:19 +000049</pre>
50</div>
Jim Laskeye9493d32006-06-16 23:34:49 +000051
Bill Wendling0ca558f2006-11-16 09:31:19 +000052 <p>After that, the code can be be updated in the destination directory
53 using:</p>
Jim Laskeye9493d32006-06-16 23:34:49 +000054
Bill Wendling0ca558f2006-11-16 09:31:19 +000055<div class="doc_code">
56<pre>svn update</pre>
57</div>
Chris Lattner810ad8c2006-07-11 20:47:00 +000058
Bill Wendling0ca558f2006-11-16 09:31:19 +000059 <p>The mirror is brought up to date every evening.</p></li>
60
61 <li>Follow the directions in the top-level <tt>README.LLVM</tt> file for
62 up-to-date instructions on how to build llvm-gcc4.</li>
Chris Lattner810ad8c2006-07-11 20:47:00 +000063</ol>
Bill Wendling0ca558f2006-11-16 09:31:19 +000064
Chris Lattner810ad8c2006-07-11 20:47:00 +000065</div>
Brian Gaeke46079d22003-10-21 21:58:38 +000066<!-- *********************************************************************** -->
John Criswelld000e1d2003-12-18 16:43:17 +000067<div class="doc_section">
68 <a name="license">License Information</a>
69</div>
70
71<div class="doc_text">
72<p>
73The LLVM GCC frontend is licensed to you under the GNU General Public License
74and the GNU Lesser General Public License. Please see the files COPYING and
75COPYING.LIB for more details.
76</p>
77
78<p>
Chris Lattner810ad8c2006-07-11 20:47:00 +000079More information is <a href="FAQ.html#license">available in the FAQ</a>.
John Criswelld000e1d2003-12-18 16:43:17 +000080</p>
John Criswelld000e1d2003-12-18 16:43:17 +000081</div>
82
83<!-- *********************************************************************** -->
Brian Gaeke46079d22003-10-21 21:58:38 +000084
Misha Brukmanb9e57892003-10-28 21:09:29 +000085<hr>
Misha Brukman6a2b3102004-05-12 18:49:47 +000086<address>
87 <a href="http://jigsaw.w3.org/css-validator/check/referer"><img
88 src="http://jigsaw.w3.org/css-validator/images/vcss" alt="Valid CSS!"></a>
89 <a href="http://validator.w3.org/check/referer"><img
90 src="http://www.w3.org/Icons/valid-html401" alt="Valid HTML 4.01!"></a>
91
Reid Spencer05fe4b02006-03-14 05:39:39 +000092 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
Misha Brukmanb9e57892003-10-28 21:09:29 +000093 Last modified: $Date$
Misha Brukman6a2b3102004-05-12 18:49:47 +000094</address>
Brian Gaeke46079d22003-10-21 21:58:38 +000095
Misha Brukman83bd33a2003-10-23 01:48:33 +000096</body>
97</html>