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 compiles C/ObjC programs into native objects, LLVM
15 bitcode or LLVM assembly language, depending upon the options.
17 By default, B<llvm-gcc> compiles to native objects just like GCC does. If the
18 B<-emit-llvm> and B<-c> options are given then it will generate LLVM bitcode files
19 instead. If B<-emit-llvm> and B<-S> are given, then it will generate LLVM
22 Being derived from the GNU Compiler Collection, B<llvm-gcc> has many
23 of gcc's features and accepts most of gcc's options. It handles a
24 number of gcc's extensions to the C programming language. See the gcc
25 documentation for details.
33 Print a summary of command line options.
35 =item B<-o> I<filename>
37 Specify the output file to be I<filename>.
39 =item B<-I> I<directory>
41 Add a directory to the header file search path. This option can be
44 =item B<-L> I<directory>
46 Add I<directory> to the library search path. This option can be
51 Link in the library libI<name>.[bc | a | so]. This library should
56 Make the output be LLVM bitcode (with B<-c>) or assembly (with B<-s>) instead
57 of native object (or assembly). If B<-emit-llvm> is given without either B<-c>
58 or B<-S> it has no effect.
64 If B<llvm-gcc> succeeds, it will exit with 0. Otherwise, if an error
65 occurs, it will exit with a non-zero value.
73 Maintained by the LLVM Team (L<http://llvm.org>).