Misha Brukman | 6a2b310 | 2004-05-12 18:49:47 +0000 | [diff] [blame] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" |
| 2 | "http://www.w3.org/TR/html4/strict.dtd"> |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 3 | <html> |
| 4 | <head> |
Misha Brukman | 6a2b310 | 2004-05-12 18:49:47 +0000 | [diff] [blame] | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| 6 | <link rel="stylesheet" href="llvm.css" type="text/css" media="screen"> |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 7 | <title>Building the LLVM C/C++ Front-End</title> |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 8 | </head> |
| 9 | <body> |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 10 | |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 11 | <div class="doc_title"> |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 12 | Building the LLVM C/C++ Front-End |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 13 | </div> |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 14 | |
Brian Gaeke | 7af03e9 | 2003-11-12 20:47:30 +0000 | [diff] [blame] | 15 | <ol> |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 16 | <li><a href="#instructions">Building llvm-gcc 4 from Source</a></li> |
Chris Lattner | 6a615ad | 2004-06-01 18:13:05 +0000 | [diff] [blame] | 17 | <li><a href="#license">License Information</a></li> |
Brian Gaeke | 7af03e9 | 2003-11-12 20:47:30 +0000 | [diff] [blame] | 18 | </ol> |
| 19 | |
Chris Lattner | 7911ce2 | 2004-05-23 21:07:27 +0000 | [diff] [blame] | 20 | <div class="doc_author"> |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 21 | <p>Written by the LLVM Team</p> |
Brian Gaeke | 7af03e9 | 2003-11-12 20:47:30 +0000 | [diff] [blame] | 22 | </div> |
| 23 | |
| 24 | <!-- *********************************************************************** --> |
| 25 | <div class="doc_section"> |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 26 | <a name="instructions">Building llvm-gcc 4 from Source</a> |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 27 | </div> |
| 28 | <!-- *********************************************************************** --> |
| 29 | |
| 30 | <div class="doc_text"> |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 31 | |
| 32 | <p>This section describes how to aquire and build llvm-gcc4, which is based on |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 33 | the GCC 4.0.1 front-end. This front-end supports C, C++, Objective-C, and |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 34 | Objective-C++. Note that the instructions for building this front-end are |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 35 | completely different (and much easier!) than those for building llvm-gcc3 in |
| 36 | the past.</p> |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 37 | |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 38 | <ol> |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 39 | <li><p>Retrieve the appropriate llvm-gcc4-x.y.source.tar.gz archive from the |
Chris Lattner | ad85ba4 | 2007-02-14 07:42:12 +0000 | [diff] [blame] | 40 | <a href="http://llvm.org/releases/">llvm web site</a>.</p> |
Jim Laskey | e9493d3 | 2006-06-16 23:34:49 +0000 | [diff] [blame] | 41 | |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 42 | <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 Laskey | e9493d3 | 2006-06-16 23:34:49 +0000 | [diff] [blame] | 45 | |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 46 | <div class="doc_code"> |
| 47 | <pre> |
| 48 | svn co svn://anonsvn.opensource.apple.com/svn/llvm/trunk <i>dst-directory</i> |
| 49 | </pre> |
| 50 | </div> |
Jim Laskey | e9493d3 | 2006-06-16 23:34:49 +0000 | [diff] [blame] | 51 | |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 52 | <p>After that, the code can be be updated in the destination directory |
| 53 | using:</p> |
Jim Laskey | e9493d3 | 2006-06-16 23:34:49 +0000 | [diff] [blame] | 54 | |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 55 | <div class="doc_code"> |
| 56 | <pre>svn update</pre> |
| 57 | </div> |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 58 | |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 59 | <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 Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 63 | </ol> |
Bill Wendling | 0ca558f | 2006-11-16 09:31:19 +0000 | [diff] [blame] | 64 | |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 65 | </div> |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 66 | <!-- *********************************************************************** --> |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 67 | <div class="doc_section"> |
| 68 | <a name="license">License Information</a> |
| 69 | </div> |
| 70 | |
| 71 | <div class="doc_text"> |
| 72 | <p> |
| 73 | The LLVM GCC frontend is licensed to you under the GNU General Public License |
| 74 | and the GNU Lesser General Public License. Please see the files COPYING and |
| 75 | COPYING.LIB for more details. |
| 76 | </p> |
| 77 | |
| 78 | <p> |
Chris Lattner | 810ad8c | 2006-07-11 20:47:00 +0000 | [diff] [blame] | 79 | More information is <a href="FAQ.html#license">available in the FAQ</a>. |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 80 | </p> |
John Criswell | d000e1d | 2003-12-18 16:43:17 +0000 | [diff] [blame] | 81 | </div> |
| 82 | |
| 83 | <!-- *********************************************************************** --> |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 84 | |
Misha Brukman | b9e5789 | 2003-10-28 21:09:29 +0000 | [diff] [blame] | 85 | <hr> |
Misha Brukman | 6a2b310 | 2004-05-12 18:49:47 +0000 | [diff] [blame] | 86 | <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 Spencer | 05fe4b0 | 2006-03-14 05:39:39 +0000 | [diff] [blame] | 92 | <a href="http://llvm.org">LLVM Compiler Infrastructure</a><br> |
Misha Brukman | b9e5789 | 2003-10-28 21:09:29 +0000 | [diff] [blame] | 93 | Last modified: $Date$ |
Misha Brukman | 6a2b310 | 2004-05-12 18:49:47 +0000 | [diff] [blame] | 94 | </address> |
Brian Gaeke | 46079d2 | 2003-10-21 21:58:38 +0000 | [diff] [blame] | 95 | |
Misha Brukman | 83bd33a | 2003-10-23 01:48:33 +0000 | [diff] [blame] | 96 | </body> |
| 97 | </html> |