blob: c9b48f42740a9b6c7e0d8af037c2f1d85fe90fd2 [file] [log] [blame]
Misha Brukman4478f2b2004-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 Brukman0ccf5192003-10-23 01:48:33 +00003<html>
4<head>
Misha Brukman4478f2b2004-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 Lattner3009bcc2007-02-14 07:42:12 +00007 <title>Building the LLVM C/C++ Front-End</title>
Misha Brukman0ccf5192003-10-23 01:48:33 +00008</head>
9<body>
Brian Gaeke0142c1e2003-10-21 21:58:38 +000010
Misha Brukman0ccf5192003-10-23 01:48:33 +000011<div class="doc_title">
Chris Lattner3009bcc2007-02-14 07:42:12 +000012 Building the LLVM C/C++ Front-End
Misha Brukman0ccf5192003-10-23 01:48:33 +000013</div>
Brian Gaeke0142c1e2003-10-21 21:58:38 +000014
Brian Gaekee6406a82003-11-12 20:47:30 +000015<ol>
Chris Lattner3009bcc2007-02-14 07:42:12 +000016 <li><a href="#instructions">Building llvm-gcc 4 from Source</a></li>
Chris Lattnerbbdec032004-06-01 18:13:05 +000017 <li><a href="#license">License Information</a></li>
Brian Gaekee6406a82003-11-12 20:47:30 +000018</ol>
19
Chris Lattner020e1fc2004-05-23 21:07:27 +000020<div class="doc_author">
Chris Lattner3009bcc2007-02-14 07:42:12 +000021 <p>Written by the LLVM Team</p>
Brian Gaekee6406a82003-11-12 20:47:30 +000022</div>
23
24<!-- *********************************************************************** -->
25<div class="doc_section">
Chris Lattner3009bcc2007-02-14 07:42:12 +000026 <a name="instructions">Building llvm-gcc 4 from Source</a>
Misha Brukman0ccf5192003-10-23 01:48:33 +000027</div>
28<!-- *********************************************************************** -->
29
30<div class="doc_text">
Chris Lattnerfa289942006-07-11 20:47:00 +000031
32<p>This section describes how to aquire and build llvm-gcc4, which is based on
Bill Wendlingae2a3092006-11-16 09:31:19 +000033the GCC 4.0.1 front-end. This front-end supports C, C++, Objective-C, and
Chris Lattnerfa289942006-07-11 20:47:00 +000034Objective-C++. Note that the instructions for building this front-end are
Chris Lattner3009bcc2007-02-14 07:42:12 +000035completely different (and much easier!) than those for building llvm-gcc3 in
36the past.</p>
Chris Lattnerfa289942006-07-11 20:47:00 +000037
Brian Gaeke0142c1e2003-10-21 21:58:38 +000038<ol>
Bill Wendlingae2a3092006-11-16 09:31:19 +000039 <li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the
Chris Lattner3009bcc2007-02-14 07:42:12 +000040 <a href="http://llvm.org/releases/">llvm web site</a>.</p>
Jim Laskey6b6e3692006-06-16 23:34:49 +000041
Bill Wendlingae2a3092006-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 Laskey6b6e3692006-06-16 23:34:49 +000045
Bill Wendlingae2a3092006-11-16 09:31:19 +000046<div class="doc_code">
47<pre>
Bill Wendlingd0c5c282007-07-23 03:56:42 +000048svn co http://llvm.org/svn/llvm-project/llvm-gcc-4.0/trunk <i>dst-directory</i>
Bill Wendlingae2a3092006-11-16 09:31:19 +000049</pre>
50</div>
Jim Laskey6b6e3692006-06-16 23:34:49 +000051
Bill Wendlingae2a3092006-11-16 09:31:19 +000052 <p>After that, the code can be be updated in the destination directory
53 using:</p>
Jim Laskey6b6e3692006-06-16 23:34:49 +000054
Bill Wendlingae2a3092006-11-16 09:31:19 +000055<div class="doc_code">
56<pre>svn update</pre>
57</div>
Chris Lattnerfa289942006-07-11 20:47:00 +000058
Bill Wendlingae2a3092006-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 Lattnerfa289942006-07-11 20:47:00 +000063</ol>
Bill Wendlingae2a3092006-11-16 09:31:19 +000064
Chris Lattnerfa289942006-07-11 20:47:00 +000065</div>
Brian Gaeke0142c1e2003-10-21 21:58:38 +000066<!-- *********************************************************************** -->
John Criswell86a3a482003-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 Lattnerfa289942006-07-11 20:47:00 +000079More information is <a href="FAQ.html#license">available in the FAQ</a>.
John Criswell86a3a482003-12-18 16:43:17 +000080</p>
John Criswell86a3a482003-12-18 16:43:17 +000081</div>
82
83<!-- *********************************************************************** -->
Brian Gaeke0142c1e2003-10-21 21:58:38 +000084
Misha Brukmanb7c3b6d2003-10-28 21:09:29 +000085<hr>
Misha Brukman4478f2b2004-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 Spencerca058542006-03-14 05:39:39 +000092 <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
Misha Brukmanb7c3b6d2003-10-28 21:09:29 +000093 Last modified: $Date$
Misha Brukman4478f2b2004-05-12 18:49:47 +000094</address>
Brian Gaeke0142c1e2003-10-21 21:58:38 +000095
Misha Brukman0ccf5192003-10-23 01:48:33 +000096</body>
97</html>