summaryrefslogtreecommitdiff
path: root/docs/CFEBuildInstrs.html
blob: 65c375caa94b5329f8aead549770e76b08431af5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
                      "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <link rel="stylesheet" href="llvm.css" type="text/css" media="screen">
  <title>Building the LLVM C/C++ Front-End</title>
</head>
<body>

<div class="doc_title">
  Building the LLVM C/C++ Front-End
</div>

<ol>
  <li><a href="#instructions">Building llvm-gcc 4 from Source</a></li>
  <li><a href="#license">License Information</a></li>
</ol>

<div class="doc_author">    
  <p>Written by the LLVM Team</p>
</div>

<!-- *********************************************************************** -->
<div class="doc_section">
  <a name="instructions">Building llvm-gcc 4 from Source</a>
</div>
<!-- *********************************************************************** -->

<div class="doc_text">

<p>This section describes how to aquire and build llvm-gcc4, which is based on
the GCC 4.0.1 front-end.  This front-end supports C, C++, Objective-C, and
Objective-C++.  Note that the instructions for building this front-end are
completely different (and much easier!) than those for building llvm-gcc3 in
the past.</p>

<ol>
  <li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz 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-gcc4 front end
         from a read-only mirror using subversion.  To check out the code the
         first time use:</p>

<div class="doc_code">
<pre>
svn co svn://anonsvn.opensource.apple.com/svn/llvm/trunk <i>dst-directory</i>
</pre>
</div>

      <p>After that, the code can be be updated in the destination directory
         using:</p>

<div class="doc_code">
<pre>svn update</pre>
</div>

      <p>The mirror is brought up to date every evening.</p></li>

  <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>
</ol>

</div>
<!-- *********************************************************************** -->
<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>
More information is <a href="FAQ.html#license">available in the FAQ</a>.
</p>
</div>

<!-- *********************************************************************** -->

<hr>
<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>

  <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br>
  Last modified: $Date$
</address>

</body>
</html>