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.11 2007/03/10 07:10:01 ru Exp $
28 .Dd September 17, 1997
33 .Nd POSIX.2 C language compiler
37 .Oo Fl D Ar name Ns Oo = Ns Ar value Oc Oc ...
38 .Oo Fl I Ar directory Oc ...
39 .Oo Fl L Ar directory Oc ...
41 .Oo Fl U Ar name Oc ...
44 This is the name of the C language compiler as required by the
50 compiler accepts the following options:
51 .Bl -tag -width indent
53 Suppress the link-edit phase of the compilation, and do not remove any
54 object files that are produced.
55 .It Fl D Ar name Ns Op = Ns Ar value
56 Define name as if by a C-language
61 is given, a value of 1 will be used.
62 Note that in order to request a
63 translation as specified by
67 either in the source or using this option.
70 option has lower precedence than the
81 will be undefined regardless of the order of the options.
84 option may be specified more than once.
86 Copy C-language source files to the standard output, expanding all
87 preprocessor directives; no compilation will be performed.
89 Produce symbolic information in the object or executable files.
91 Change the algorithm for searching for headers whose names are not
92 absolute pathnames to look in the directory named by the
94 pathname before looking in the usual places.
96 names are enclosed in double-quotes
98 will be searched for first
99 in the directory of the file with the
104 options, and last in the usual places.
105 For headers whose names are enclosed in angle brackets
108 will be searched for only in directories named in
110 options and then in the usual places.
113 options shall be searched in the order specified.
116 option may be specified more than once.
117 .It Fl L Ar directory
118 Change the algorithm of searching for the libraries named in the
120 objects to look in the directory named by the
122 pathname before looking in the usual places.
125 options will be searched in the order specified.
128 option may be specified more than once.
132 instead of the default
134 for the executable file produced.
136 Optimize the compilation.
138 Produce object and/or executable files from which symbolic and other
139 information not required for proper execution has been removed
142 Remove any initial definition of
146 option may be specified more than once.
149 An operand is either in the form of a pathname or the form
152 At least one operand of the pathname form needs to be specified.
153 Supported operands are of the form:
154 .Bl -tag -offset indent -width ".Fl l Ar library"
156 A C-language source file to be compiled and optionally linked.
157 The operand must be of this form if the
161 A library of object files, as produced by
163 passed directly to the link editor.
165 An object file produced by
167 and passed directly to the link editor.
169 Search the library named
170 .Pa lib Ns Ar library Ns Pa .a .
171 A library will be searched when its name is encountered, so the
174 operand is significant.
183 utility is believed to comply with