9 <h1>LLVM: llvmgcc tool</h1>
23 llvmgcc [options] filename
28 The llvmgcc command is the LLVM C front end. It is a modified version of GCC
29 that takes C programs and compiles them into LLVM bytecode or assembly
30 language, depending upon the options.
33 The llvmgcc program uses the LLVM assembler gccas and the LLVM linker gccld to
34 do the work of creating complete programs.
37 Being derived from the GNU Compiler Collection, llvmgcc has many of gcc's
38 features and accepts most of gcc's options. It handles a number of gcc's
39 extensions to the C programming language.
42 Below you will find several commonly used options:
51 Do not generate an LLVM bytecode file. Rather, compile the source file
52 into an LLVM assembly language file.
57 Do not generate a linked bytecode executable. Rather, compile the source
58 file into an LLVM bytecode file. This bytecode file can then be linked
59 with other bytecode files later to generate a full LLVM executable.
62 <li> -o <i>filename</i>
64 Specify the output file to be <i>filename</i>. If <i>filename</i> is -,
65 then llvmgcc sends its output to standard output.
68 <li> -I <i>directory</i>
70 Add a directory to the header file search path. This option can be
74 <li> -L <i>directory</i>
76 Add <i>directory</i> to the library search path. This option can be
82 Link in the library lib<i>name</i>.[bc | a | so]. This library should be
88 Pass <i>option</i> to the linker (usually gccld).
96 If llvmgcc succeeds, it will exit with 0. Otherwise, if an error occurs, it
97 will exit with a non-zero value.
102 <A HREF="llvmgxx.html">llvmg++</A>,
103 <A HREF="gccas.html">gccas</A>,
104 <A HREF="gccld.html">gccld</A>
107 <a href="http://llvm.cs.uiuc.edu">LLVM Team</a>