llvm-gcc.1   [plain text]

.Dd December 11, 2008
.Dt llvm-gcc 1
.Os Darwin
.Nm llvm-gcc
llvm-gcc  [\fB\-c\fR|\fB\-S\fR|\fB\-E\fR] [\fB\-std=\fR\fIstandard\fR]
          [\fB\-g\fR] [\fB\-pg\fR] [\fB\-O\fR\fIlevel\fR]
          [\fB\-W\fR\fIwarn\fR...] [\fB\-pedantic\fR]
          [\fB\-I\fR\fIdir\fR...] [\fB\-L\fR\fIdir\fR...]
          [\fB\-D\fR\fImacro\fR[=\fIdefn\fR]...] [\fB\-U\fR\fImacro\fR]
          [\fB\-f\fR\fIoption\fR...] [\fB\-m\fR\fImachine-option\fR...]
          [\fB\-o\fR \fIoutfile\fR] \fIinfile\fR...
llvm-gcc is a C, C++, Objective-C and Objective-C++ compiler. llvm-gcc uses gcc front-end and gcc's command line interface. Consult the cc(1) man page for command line options supported by llvm-gcc. Only selected LLVM specific options are listed here.
.Bl -tag -width -indent
.It Fl flto
Enables Link Time Optimization. Link Time Optimization is performed by ld(1) transparently using the LLVM optimizer. The object file generated contains intermediate LLVM bitcode instead of Mach-O objects.
.It Fl O4
Enables Link Time Optimization in addition to all optimizations enabled at -O3.
.Xr cc 1, 
.Xr ld 1 
.\" .Sh BUGS              \" Document known, unremedied bugs 
.\" .Sh HISTORY           \" Document history if command behaves in a unique manner