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.
28 .Dd September 17, 1997
33 .Nd POSIX.2 C language compiler
37 .Op Fl D Ar name Ns Op = Ns Ar value
41 .Op Fl I Ar directory ...
42 .Op Fl L Ar directory ...
49 This is the name of the C language compiler as required by the
55 compiler accepts the following options:
56 .Bl -tag -width indent
58 Suppress the link-edit phase of the compilation, and do not remove any
59 object files that are produced.
60 .It Fl D Ar name Ns Op = Ns Ar value
61 Define name as if by a C-language
66 is given, a value of 1 will be used.
67 Note that in order to request a
68 translation as specified by
72 either in the source or using this option. The
74 option has lower precedence than the
84 will be undefined regardless of the order of the options. The
86 option may be specified more than once.
88 Copy C-language source files to the standard output, expanding all
89 preprocessor directives; no compilation will be performed.
91 Produce symbolic information in the object or executable files.
93 Change the algorithm for searching for headers whose names are not
94 absolute pathnames to look in the directory named by the
96 pathname before looking in the usual places. Thus, headers whose
97 names are enclosed in double-quotes ("") will be searched for first
98 in the directory of the file with the
103 options, and last in the usual places. For
104 headers whose names are enclosed in angle brackets (<>), the header
105 will be searched for only in directories named in
107 options and then in the usual places. Directories named in
109 options shall be searched in the order specified. The
111 option may be specified more than once.
112 .It Fl L Ar directory
113 Change the algorithm of searching for the libraries named in the
115 objects to look in the directory named by the
117 pathname before looking in the usual places. Directories named in
119 options will be searched in the order specified. The
121 option may be specified more than once.
125 instead of the default
127 for the executable file produced.
129 Optimize the compilation.
131 Produce object and/or executable files from which symbolic and other
132 information not required for proper execution has been removed
135 Remove any initial definition of
139 option may be specified more than once.
142 An operand is either in the form of a pathname or the form
144 library. At least one operand of the pathname form needs to be
145 specified. Supported operands are of the form:
146 .Bl -tag -offset indent -width "-l library"
148 A C-language source file to be compiled and optionally linked. The
149 operand must be of this form if the
153 A library of object files, as produced by
155 passed directly to the link editor.
157 An object file produced by
159 and passed directly to the link editor.
161 Search the library named
162 .Pa lib Ns Ar library Ns Pa .a .
163 A library will be searched when its name is encountered, so the
166 operand is significant.
174 command is believed to comply with