5 llvm-gcc - LLVM C front-end
9 B<llvm-gcc> [I<options>] I<filename>
13 The B<llvm-gcc> command is the LLVM C front end. It is a modified
14 version of gcc that takes C programs and compiles them into LLVM
15 bytecode or assembly language, depending upon the options.
17 Unless the B<-S> option is specified, B<llvm-gcc> will use the
18 L<gccas|gccas> program to perform some optimizations and create an
19 LLVM bytecode file. Unless the B<-c> option is specified, B<llvm-gcc>
20 will also use the L<gccld|gccld> program to perform further
21 optimizations and link the resulting bytecode file(s) with support
22 libraries to create an executable program.
24 Being derived from the GNU Compiler Collection, B<llvm-gcc> has many
25 of gcc's features and accepts most of gcc's options. It handles a
26 number of gcc's extensions to the C programming language.
34 Print a summary of command line options.
38 Do not generate an LLVM bytecode file. Rather, compile the source
39 file into an LLVM assembly language file.
43 Do not generate a linked executable. Rather, compile the source
44 file into an LLVM bytecode file. This bytecode file can then be
45 linked with other bytecode files later on to generate a full LLVM
48 =item B<-o> I<filename>
50 Specify the output file to be I<filename>.
52 =item B<-I> I<directory>
54 Add a directory to the header file search path. This option can be
57 =item B<-L> I<directory>
59 Add I<directory> to the library search path. This option can be
64 Link in the library libI<name>.[bc | a | so]. This library should
65 be a bytecode library.
67 =item B<-Wa,>I<option>
69 Pass I<option> to gccas
71 =item B<-Wl,>I<option>
73 Pass I<option> to gccld
75 =item B<-Wa,-disable-inlining -Wl,-disable-inlining>
77 Fully disable all inlining
83 If B<llvm-gcc> succeeds, it will exit with 0. Otherwise, if an error
84 occurs, it will exit with a non-zero value.
88 L<llvm-g++|llvmgxx>, L<gccas|gccas>, L<gccld|gccld>
92 Maintained by the LLVM Team (L<http://llvm.org>).