blob: 4cbf728380149e6a1559d8fd4077b9e96c8d3f98 [file] [log] [blame]
Misha Brukmanf19aa2e2004-07-01 14:51:26 +00001
2=pod
3
4=head1 NAME
5
6llvmgcc - LLVM C front-end
7
8=head1 SYNOPSIS
9
10llvmgcc [options] filename
11
12=head1 DESCRIPTION
13
14The B<llvmgcc> command is the LLVM C front end. It is a modified
15version of gcc that takes C programs and compiles them into LLVM
16bytecode or assembly language, depending upon the options.
17
18Unless the B<-S> option is specified, B<llvmgcc> will use the
19L<gccas|gccas> program to perform some optimizations and create an
20LLVM bytecode file. Unless the B<-c> option is specified, B<llvmgcc>
21will also use the L<gccld|gccld> program to perform further
22optimizations and link the resulting bytecode file(s) with support
23libraries to create an executable program.
24
25Being derived from the GNU Compiler Collection, B<llvmgcc> has many
26of gcc's features and accepts most of gcc's options. It handles a
27number of gcc's extensions to the C programming language.
28
29=head1 OPTIONS
30
31=over
32
33=item B<--help>
34
35Print a summary of command line options.
36
37=item B<-S>
38
39Do not generate an LLVM bytecode file. Rather, compile the source
40file into an LLVM assembly language file.
41
42=item B<-c>
43
44Do not generate a linked executable. Rather, compile the source
45file into an LLVM bytecode file. This bytecode file can then be
46linked with other bytecode files later on to generate a full LLVM
47executable.
48
49=item B<-o> I<filename>
50
51Specify the output file to be I<filename>.
52
53=item B<-I> I<directory>
54
55Add a directory to the header file search path. This option can be
56repeated.
57
58=item B<-L> I<directory>
59
60Add I<directory> to the library search path. This option can be
61repeated.
62
63=item B<-l>I<name>
64
65Link in the library libI<name>.[bc | a | so]. This library should
66be a bytecode library.
67
68=item B<-Wl,>I<option>
69
70Pass I<option> to the linker (usually gccld).
71
72=back
73
74=head1 EXIT STATUS
75
76If B<llvmgcc> succeeds, it will exit with 0. Otherwise, if an error
77occurs, it will exit with a non-zero value.
78
79=head1 SEE ALSO
80
81L<llvmgxx>, L<gccas>, L<gccld>
82
83=head1 AUTHORS
84
85Maintained by the LLVM Team (L<http://llvm.cs.uiuc.edu>).
86
87=cut
88