9 <h1>LLVM: <tt>llvmgcc</tt> tool</h1>
20 <tt>llvmgcc [options] filename</tt>
25 The <tt>llvmgcc</tt> command is the LLVM C front end. It is a modified version
26 of the <a href="http://gcc.gnu.org">GNU Compiler Collection</a> (GCC) that takes
27 C programs and compiles them into LLVM bytecode or assembly language, depending
31 The <tt>llvmgcc</tt> program uses the <a href="gccas.html"><tt>gccas</tt></a>
32 and <a href="gccld.html"><tt>gccld</tt></a> programs to do the work of creating
36 Being derived from GCC, llvmgcc has many of GCC's features and accepts most of
37 GCC's options. It handles a number of GCC's extensions to the C programming
41 Below you will find several commonly used options:
50 Do not generate an LLVM bytecode file. Rather, compile the source file
51 into an LLVM assembly language file.
56 Do not generate a linked bytecode executable. Rather, compile the source
57 file into an LLVM bytecode file. This bytecode file can then be linked
58 with other bytecode files later to generate a full LLVM executable.
61 <li> -o <i>filename</i>
63 Specify the output file to be <i>filename</i>.
66 <li> -I <i>directory</i>
68 Add a directory to the header file search path. This option can be
72 <li> -L <i>directory</i>
74 Add <i>directory</i> to the library search path. This option can be
80 Link in the library lib<i>name</i>.[bc | a | so]. This library should
81 be a bytecode library.
86 Pass <i>option</i> to the linker program, <a
87 href="gccld.html"><tt>gccld</tt></a>.
95 If <tt>llvmgcc</tt> succeeds, it will exit with 0. Otherwise, if an error
96 occurs, it will exit with a non-zero value.
101 <A HREF="llvmgxx.html"><tt>llvmg++</tt></A>,
102 <A HREF="gccas.html"><tt>gccas</tt></A>,
103 <A HREF="gccld.html"><tt>gccld</tt></A>
106 Maintained by the <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>.