6 llvmg++ - LLVM C++ front-end
10 llvmg++ [options] filename
14 The B<llvmg++> command is the LLVM C++ front end. It is a modified
15 version of g++ that takes C++ programs and compiles them into LLVM
16 bytecode or assembly language, depending upon the options.
18 Unless the B<-S> option is specified, B<llvmg++> will use the
19 L<gccas|gccas> program to perform some optimizations and create an
20 LLVM bytecode file. Unless the B<-c> option is specified, B<llvmg++>
21 will also use the L<gccld|gccld> program to perform further
22 optimizations and link the resulting bytecode file(s) with support
23 libraries to create an executable program.
25 Being derived from the GNU Compiler Collection, B<llvmg++> has many
26 of g++'s features and accepts most of g++'s options. It handles a
27 number of g++'s extensions to the C++ programming language.
35 Print a summary of command line options.
39 Do not generate an LLVM bytecode file. Rather, compile the source
40 file into an LLVM assembly language file.
44 Do not generate a linked executable. Rather, compile the source
45 file into an LLVM bytecode file. This bytecode file can then be
46 linked with other bytecode files later on to generate a full LLVM
49 =item B<-o> I<filename>
51 Specify the output file to be I<filename>.
53 =item B<-I> I<directory>
55 Add a directory to the header file search path. This option can be
58 =item B<-L> I<directory>
60 Add I<directory> to the library search path. This option can be
65 Link in the library libI<name>.[bc | a | so]. This library should
66 be a bytecode library.
68 =item B<-Wl,>I<option>
70 Pass I<option> to the linker (usually gccld).
76 If B<llvmg++> succeeds, it will exit with 0. Otherwise, if an error
77 occurs, it will exit with a non-zero value.
81 L<llvmgcc>, L<gccas>, L<gccld>
85 Maintained by the LLVM Team (L<http://llvm.cs.uiuc.edu>).