2 .\" Copyright (c) 1997 Joerg Wunsch
4 .\" All rights reserved.
6 .\" Redistribution and use in source and binary forms, with or without
7 .\" modification, are permitted provided that the following conditions
9 .\" 1. Redistributions of source code must retain the above copyright
10 .\" notice, this list of conditions and the following disclaimer.
11 .\" 2. Redistributions in binary form must reproduce the above copyright
12 .\" notice, this list of conditions and the following disclaimer in the
13 .\" documentation and/or other materials provided with the distribution.
15 .\" THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY EXPRESS OR
16 .\" IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
17 .\" OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
18 .\" IN NO EVENT SHALL THE DEVELOPERS BE LIABLE FOR ANY DIRECT, INDIRECT,
19 .\" INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
20 .\" NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
21 .\" DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
22 .\" THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23 .\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
24 .\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 .\" FreeBSD: src/usr.bin/c89/c89.1,v 1.4.2.4 2001/08/02 01:11:13 obrien Exp
27 .\" $FreeBSD: src/usr.bin/c99/c99.1,v 1.3 2004/03/04 20:29:27 josef Exp $
28 .\" $DragonFly: src/usr.bin/c99/c99.1,v 1.1 2004/07/23 16:32:58 hmp Exp $
35 .Nd standard C language compiler
39 .Op Fl D Ar name Ns Op = Ns Ar value
41 .Op Fl I Ar directory ...
42 .Op Fl L Ar directory ...
48 This is the name of the C language compiler as required by the
54 compiler accepts the following options:
55 .Bl -tag -width indent
57 Suppress the link-edit phase of the compilation, and do not remove any
58 object files that are produced.
59 .It Fl D Ar name Ns Op = Ns Ar value
60 Define name as if by a C-language
65 is given, a value of 1 will be used.
66 Note that in order to request a
67 translation as specified by
70 .Dv _POSIX_C_SOURCE=200112L
71 either in the source or using this option.
74 option has lower precedence than the
85 will be undefined regardless of the order of the options.
88 option may be specified more than once.
90 Copy C-language source files to the standard output, expanding all
91 preprocessor directives; no compilation will be performed.
93 Produce symbolic information in the object or executable files.
95 Change the algorithm for searching for headers whose names are not
96 absolute pathnames to look in the directory named by the
98 pathname before looking in the usual places.
100 names are enclosed in double-quotes
102 will be searched for first
103 in the directory of the file with the
108 options, and last in the usual places.
109 For headers whose names are enclosed in angle brackets
112 will be searched for only in directories named in
114 options and then in the usual places.
117 options shall be searched in the order specified.
120 option may be specified more than once.
121 .It Fl L Ar directory
122 Change the algorithm of searching for the libraries named in the
124 objects to look in the directory named by the
126 pathname before looking in the usual places.
129 options will be searched in the order specified.
132 option may be specified more than once.
136 instead of the default
138 for the executable file produced.
142 is zero, disable all optimizations.
143 Otherwise, enable optimizations at the specified level.
145 Produce object and/or executable files from which symbolic and other
146 information not required for proper execution has been removed
149 Remove any initial definition of
153 option may be specified more than once.
156 An operand is either in the form of a pathname or the form
159 At least one operand of the pathname form needs to be specified.
160 Supported operands are of the form:
161 .Bl -tag -offset indent -width ".Fl l Ar library"
163 A C-language source file to be compiled and optionally linked.
164 The operand must be of this form if the
168 A library of object files, as produced by
170 passed directly to the link editor.
172 An object file produced by
174 and passed directly to the link editor.
176 Search the library named
177 .Pa lib Ns Ar library Ns Pa .a .
178 A library will be searched when its name is encountered, so the
181 operand is significant.
190 utility interface conforms to
192 Since it is a wrapper around
200 .Pa http://gcc.gnu.org/gcc-3.4/c99status.html .