| 227 |
dpurdie |
1 |
Usage: GCC.EXE [options] file...
|
|
|
2 |
Options:
|
|
|
3 |
--help Display this information
|
|
|
4 |
-dumpspecs Display all of the built in spec strings
|
|
|
5 |
-dumpversion Display the version of the compiler
|
|
|
6 |
-dumpmachine Display the compiler's target processor
|
|
|
7 |
-print-search-dirs Display the directories in the compiler's search path
|
|
|
8 |
-print-libgcc-file-name Display the name of the compiler's companion library
|
|
|
9 |
-print-file-name=<lib> Display the full path to library <lib>
|
|
|
10 |
-print-prog-name=<prog> Display the full path to compiler component <prog>
|
|
|
11 |
-print-multi-directory Display the root directory for versions of libgcc
|
|
|
12 |
-print-multi-lib Display the mapping between command line options and
|
|
|
13 |
multiple library search directories
|
|
|
14 |
-Wa,<options> Pass comma-separated <options> on to the assembler
|
|
|
15 |
-Wp,<options> Pass comma-separated <options> on to the preprocessor
|
|
|
16 |
-Wl,<options> Pass comma-separated <options> on to the linker
|
|
|
17 |
-Xlinker <arg> Pass <arg> on to the linker
|
|
|
18 |
-save-temps Do not delete intermediate files
|
|
|
19 |
-pipe Use pipes rather than intermediate files
|
|
|
20 |
-specs=<file> Override builtin specs with the contents of <file>
|
|
|
21 |
-std=<standard> Assume that the input sources are for <standard>
|
|
|
22 |
-B <directory> Add <directory> to the compiler's search paths
|
|
|
23 |
-b <machine> Run gcc for target <machine>, if installed
|
|
|
24 |
-V <version> Run gcc version number <version>, if installed
|
|
|
25 |
-v Display the programs invoked by the compiler
|
|
|
26 |
-E Preprocess only; do not compile, assemble or link
|
|
|
27 |
-S Compile only; do not assemble or link
|
|
|
28 |
-c Compile and assemble, but do not link
|
|
|
29 |
-o <file> Place the output into <file>
|
|
|
30 |
-x <language> Specify the language of the following input files
|
|
|
31 |
Permissable languages include: c c++ assembler none
|
|
|
32 |
'none' means revert to the default behaviour of
|
|
|
33 |
guessing the language based on the file's extension
|
|
|
34 |
|
|
|
35 |
Options starting with -g, -f, -m, -O or -W are automatically passed on to
|
|
|
36 |
the various sub-processes invoked by GCC.EXE. In order to pass other options
|
|
|
37 |
on to these processes the -W<letter> options must be used.
|
|
|
38 |
Usage: cpp [switches] input output
|
|
|
39 |
Switches:
|
|
|
40 |
-include <file> Include the contents of <file> before other files
|
|
|
41 |
-imacros <file> Accept definition of marcos in <file>
|
|
|
42 |
-iprefix <path> Specify <path> as a prefix for next two options
|
|
|
43 |
-iwithprefix <dir> Add <dir> to the end of the system include paths
|
|
|
44 |
-iwithprefixbefore <dir> Add <dir> to the end of the main include paths
|
|
|
45 |
-isystem <dir> Add <dir> to the start of the system include paths
|
|
|
46 |
-idirafter <dir> Add <dir> to the end of the system include paths
|
|
|
47 |
-I <dir> Add <dir> to the end of the main include paths
|
|
|
48 |
-nostdinc Do not search the system include directories
|
|
|
49 |
-nostdinc++ Do not search the system include directories for C++
|
|
|
50 |
-o <file> Put output into <file>
|
|
|
51 |
-pedantic Issue all warnings demanded by strict ANSI C
|
|
|
52 |
-traditional Follow K&R pre-processor behaviour
|
|
|
53 |
-trigraphs Support ANSI C trigraphs
|
|
|
54 |
-lang-c Assume that the input sources are in C
|
| 4003 |
dpurdie |
55 |
-lang-c89 Assume that the input is C89; deprecated
|
| 227 |
dpurdie |
56 |
-lang-c++ Assume that the input sources are in C++
|
|
|
57 |
-lang-objc Assume that the input sources are in ObjectiveC
|
|
|
58 |
-lang-objc++ Assume that the input sources are in ObjectiveC++
|
|
|
59 |
-lang-asm Assume that the input sources are in assembler
|
|
|
60 |
-lang-chill Assume that the input sources are in Chill
|
|
|
61 |
-std=<std name> Specify the conformance standard; one of:
|
|
|
62 |
gnu89, gnu9x, c89, c9x, iso9899:1990,
|
|
|
63 |
iso9899:199409, iso9899:199x
|
|
|
64 |
-+ Allow parsing of C++ style features
|
|
|
65 |
-w Inhibit warning messages
|
|
|
66 |
-Wtrigraphs Warn if trigraphs are encountered
|
|
|
67 |
-Wno-trigraphs Do not warn about trigraphs
|
|
|
68 |
-Wcomment{s} Warn if one comment starts inside another
|
|
|
69 |
-Wno-comment{s} Do not warn about comments
|
|
|
70 |
-Wtraditional Warn if a macro argument is/would be turned into
|
|
|
71 |
a string if -traditional is specified
|
|
|
72 |
-Wno-traditional Do not warn about stringification
|
|
|
73 |
-Wundef Warn if an undefined macro is used by #if
|
|
|
74 |
-Wno-undef Do not warn about testing undefined macros
|
|
|
75 |
-Wimport Warn about the use of the #import directive
|
|
|
76 |
-Wno-import Do not warn about the use of #import
|
|
|
77 |
-Werror Treat all warnings as errors
|
|
|
78 |
-Wno-error Do not treat warnings as errors
|
|
|
79 |
-Wall Enable all preprocessor warnings
|
|
|
80 |
-M Generate make dependencies
|
|
|
81 |
-MM As -M, but ignore system header files
|
|
|
82 |
-MD As -M, but put output in a .d file
|
|
|
83 |
-MMD As -MD, but ignore system header files
|
|
|
84 |
-MG Treat missing header file as generated files
|
|
|
85 |
-g Include #define and #undef directives in the output
|
|
|
86 |
-D<macro> Define a <macro> with string '1' as its value
|
|
|
87 |
-D<macro>=<val> Define a <macro> with <val> as its value
|
|
|
88 |
-A<question> (<answer>) Assert the <answer> to <question>
|
|
|
89 |
-U<macro> Undefine <macro>
|
|
|
90 |
-u or -undef Do not predefine any macros
|
|
|
91 |
-v Display the version number
|
|
|
92 |
-H Print the name of header files as they are used
|
|
|
93 |
-C Do not discard comments
|
|
|
94 |
-dM Display a list of macro definitions active at end
|
|
|
95 |
-dD Preserve macro definitions in output
|
|
|
96 |
-dN As -dD except that only the names are preserved
|
|
|
97 |
-dI Include #include directives in the output
|
|
|
98 |
-ifoutput Describe skipped code blocks in output
|
|
|
99 |
-P Do not generate #line directives
|
|
|
100 |
-$ Do not include '$' in identifiers
|
|
|
101 |
-remap Remap file names when including files.
|
|
|
102 |
-h or --help Display this information
|
|
|
103 |
Usage: cc1 input [switches]
|
|
|
104 |
Switches:
|
|
|
105 |
-ffixed-<register> Mark <register> as being unavailable to the compiler
|
|
|
106 |
-fcall-used-<register> Mark <register> as being corrupted by function calls
|
|
|
107 |
-fcall-saved-<register> Mark <register> as being preserved across functions
|
|
|
108 |
-finline-limit-<number> Limits the size of inlined functions to <number>
|
|
|
109 |
-fident Process #ident directives
|
|
|
110 |
-fleading-underscore External symbols have a leading underscore
|
|
|
111 |
-finstrument-functions Instrument function entry/exit with profiling calls
|
|
|
112 |
-fdump-unnumbered Suppress output of instruction numbers and line number notes in debugging dumps
|
|
|
113 |
-fprefix-function-name Add a prefix to all function names
|
|
|
114 |
-fcheck-memory-usage Generate code to check every memory access
|
|
|
115 |
-fstrict-aliasing Assume strict aliasing rules apply
|
|
|
116 |
-fargument-noalias-global Assume arguments do not alias each other or globals
|
|
|
117 |
-fargument-noalias Assume arguments may alias globals but not each other
|
|
|
118 |
-fargument-alias Specify that arguments may alias each other & globals
|
|
|
119 |
-fstack-check Insert stack checking code into the program
|
|
|
120 |
-fpack-struct Pack structure members together without holes
|
|
|
121 |
-foptimize-register-move Do the full regmove optimization pass
|
|
|
122 |
-fregmove Enables a register move optimisation
|
|
|
123 |
-fgnu-linker Output GNU ld formatted global initialisers
|
|
|
124 |
-fverbose-asm Add extra commentry to assembler output
|
|
|
125 |
-fdata-sections place data items into their own section
|
|
|
126 |
-ffunction-sections place each function into its own section
|
|
|
127 |
-finhibit-size-directive Do not generate .size directives
|
|
|
128 |
-fcommon Do not put unitialised globals in the common section
|
|
|
129 |
-ffast-math Improve FP speed by violating ANSI & IEEE rules
|
|
|
130 |
-fbranch-probabilities Use profiling information for branch probabilities
|
|
|
131 |
-ftest-coverage Create data files needed by gcov
|
|
|
132 |
-fprofile-arcs Insert arc based program profiling code
|
|
|
133 |
-fasynchronous-exceptions Support asynchronous exceptions
|
|
|
134 |
-fsjlj-exceptions Use setjmp/longjmp to handle exceptions
|
|
|
135 |
-fnew-exceptions Use the new model for exception handling
|
|
|
136 |
-fexceptions Enable exception handling
|
|
|
137 |
-fpic Generate position independent code, if possible
|
|
|
138 |
-fbranch-count-reg Replace add,compare,branch with branch on count reg
|
|
|
139 |
-fschedule-insns2 Run two passes of the instruction scheduler
|
|
|
140 |
-fschedule-insns Reschedule instructions to avoid pipeline stalls
|
|
|
141 |
-fpretend-float Pretend that host and target use the same FP format
|
|
|
142 |
-frerun-loop-opt Run the loop optimiser twice
|
|
|
143 |
-frerun-cse-after-loop Run CSE pass after loop optimisations
|
|
|
144 |
-fgcse Perform the global common subexpression elimination
|
|
|
145 |
-fdelayed-branch Attempt to fill delay slots of branch instructions
|
|
|
146 |
-freg-struct-return Return 'short' aggregates in registers
|
|
|
147 |
-fpcc-struct-return Return 'short' aggregates in memory, not registers
|
|
|
148 |
-fcaller-saves Enable saving registers around function calls
|
|
|
149 |
-fshared-data Mark data as shared rather than private
|
|
|
150 |
-fsyntax-only Check for syntax errors, then stop
|
|
|
151 |
-fkeep-static-consts Emit static const variables even if they are not used
|
|
|
152 |
-finline Pay attention to the 'inline' keyword
|
|
|
153 |
-fkeep-inline-functions Generate code for funcs even if they are fully inlined
|
|
|
154 |
-finline-functions Integrate simple functions into their callers
|
|
|
155 |
-ffunction-cse Allow function addresses to be held in registers
|
|
|
156 |
-fforce-addr Copy memory address constants into regs before using
|
|
|
157 |
-fforce-mem Copy memory operands into registers before using
|
|
|
158 |
-fpeephole Enable machine specific peephole optimisations
|
|
|
159 |
-fwritable-strings Store strings in writable data section
|
|
|
160 |
-freduce-all-givs Strength reduce all loop general induction variables
|
|
|
161 |
-fmove-all-movables Force all loop invariant computations out of loops
|
|
|
162 |
-funroll-all-loops Perform loop unrolling for all loops
|
|
|
163 |
-funroll-loops Perform loop unrolling when iteration count is known
|
|
|
164 |
-fstrength-reduce Perform strength reduction optimisations
|
|
|
165 |
-fthread-jumps Perform jump threading optimisations
|
|
|
166 |
-fexpensive-optimizations Perform a number of minor, expensive optimisations
|
|
|
167 |
-fcse-skip-blocks When running CSE, follow conditional jumps
|
|
|
168 |
-fcse-follow-jumps When running CSE, follow jumps to their targets
|
|
|
169 |
-fomit-frame-pointer When possible do not generate stack frames
|
|
|
170 |
-fdefer-pop Defer popping functions args from stack until later
|
|
|
171 |
-fvolatile-static Consider all mem refs to static data to be volatile
|
|
|
172 |
-fvolatile-global Consider all mem refs to global data to be volatile
|
|
|
173 |
-fvolatile Consider all mem refs through pointers as volatile
|
|
|
174 |
-ffloat-store Do not store floats in registers
|
|
|
175 |
-O[number] Set optimisation level to [number]
|
|
|
176 |
-Os Optimise for space rather than speed
|
|
|
177 |
-pedantic Issue warnings needed by strict compliance to ANSI C
|
|
|
178 |
-pedantic-errors Like -pedantic except that errors are produced
|
|
|
179 |
-w Suppress warnings
|
|
|
180 |
-W Enable extra warnings
|
|
|
181 |
-Winline Warn when an inlined function cannot be inlined
|
|
|
182 |
-Wuninitialized Warn about unitialized automatic variables
|
|
|
183 |
-Wcast-align Warn about pointer casts which increase alignment
|
|
|
184 |
-Waggregate-return Warn about returning structures, unions or arrays
|
|
|
185 |
-Wswitch Warn about enumerated switches missing a specific case
|
|
|
186 |
-Wshadow Warn when one local variable shadows another
|
|
|
187 |
-Wunused Warn when a variable is unused
|
|
|
188 |
-Wid-clash-<num> Warn if 2 identifiers have the same first <num> chars
|
|
|
189 |
-Wlarger-than-<number> Warn if an object is larger than <number> bytes
|
|
|
190 |
-p Enable function profiling
|
|
|
191 |
-a Enable block profiling
|
|
|
192 |
-ax Enable jump profiling
|
|
|
193 |
-o <file> Place output into <file>
|
|
|
194 |
-G <number> Put global and static data smaller than <number>
|
|
|
195 |
bytes into a special section (on some targets)
|
|
|
196 |
-gcoff Generate COFF format debug output
|
|
|
197 |
-gstabs+ Generate extended STABS format debug output
|
|
|
198 |
-gstabs Generate STABS format debug output
|
|
|
199 |
-ggdb Generate default extended debug format output
|
|
|
200 |
-g Generate default debug format output
|
|
|
201 |
-aux-info <file> Emit declaration info into <file>.X
|
|
|
202 |
-quiet Do not display functions compiled or elapsed time
|
|
|
203 |
-version Display the compiler's version
|
|
|
204 |
-d[letters] Enable dumps from specific passes of the compiler
|
|
|
205 |
-dumpbase <file> Base name to be used for dumps from specific passes
|
|
|
206 |
--help Display this information
|
|
|
207 |
|
|
|
208 |
Language specific options:
|
|
|
209 |
-ansi Compile just for ANSI C
|
|
|
210 |
-fallow-single-precisio Do not promote floats to double if using -traditional
|
|
|
211 |
-std= Determine language standard
|
|
|
212 |
-funsigned-bitfields Make bitfields by unsigned by default
|
|
|
213 |
-fsigned-char Make 'char' be signed by default
|
|
|
214 |
-funsigned-char Make 'char' be unsigned by default
|
|
|
215 |
-traditional Attempt to support traditional K&R style C
|
|
|
216 |
-fno-asm Do not recognise the 'asm' keyword
|
|
|
217 |
-fno-builtin Do not recognise any built in functions
|
|
|
218 |
-fhosted Assume normal C execution environment
|
|
|
219 |
-ffreestanding Assume that standard libraries & main might not exist
|
|
|
220 |
-fcond-mismatch Allow different types as args of ? operator
|
|
|
221 |
-fdollars-in-identifier Allow the use of $ inside identifiers
|
|
|
222 |
-fshort-double Use the same size for double as for float
|
|
|
223 |
-fshort-enums Use the smallest fitting integer to hold enums
|
|
|
224 |
-Wall Enable most warning messages
|
|
|
225 |
-Wbad-function-cast Warn about casting functions to incompatible types
|
|
|
226 |
-Wmissing-noreturn Warn about functions which might be candidates for attribute noreturn
|
|
|
227 |
-Wcast-qual Warn about casts which discard qualifiers
|
|
|
228 |
-Wchar-subscripts Warn about subscripts whose type is 'char'
|
|
|
229 |
-Wcomment Warn if nested comments are detected
|
|
|
230 |
-Wcomments Warn if nested comments are detected
|
|
|
231 |
-Wconversion Warn about possibly confusing type conversions
|
|
|
232 |
-Wformat Warn about printf format anomalies
|
|
|
233 |
-Wimplicit-function-dec Warn about implicit function declarations
|
|
|
234 |
-Wimplicit-int Warn when a declaration does not specify a type
|
|
|
235 |
-Wimport Warn about the use of the #import directive
|
|
|
236 |
-Wno-long-long Do not warn about using 'long long' when -pedantic
|
|
|
237 |
-Wmain Warn about suspicious declarations of main
|
|
|
238 |
-Wmissing-braces Warn about possibly missing braces around initialisers
|
|
|
239 |
-Wmissing-declarations Warn about global funcs without previous declarations
|
|
|
240 |
-Wmissing-prototypes Warn about global funcs without prototypes
|
|
|
241 |
-Wmultichar Warn about use of multicharacter literals
|
|
|
242 |
-Wnested-externs Warn about externs not at file scope level
|
|
|
243 |
-Wparentheses Warn about possible missing parentheses
|
|
|
244 |
-Wpointer-arith Warn about function pointer arithmetic
|
|
|
245 |
-Wredundant-decls Warn about multiple declarations of the same object
|
|
|
246 |
-Wsign-compare Warn about signed/unsigned comparisons
|
|
|
247 |
-Wunknown-pragmas Warn about unrecognised pragmas
|
|
|
248 |
-Wstrict-prototypes Warn about non-prototyped function decls
|
|
|
249 |
-Wtraditional Warn about constructs whose meaning change in ANSI C
|
|
|
250 |
-Wtrigraphs Warn when trigraphs are encountered
|
|
|
251 |
-Wwrite-strings Mark strings as 'const char *'
|
|
|
252 |
|
|
|
253 |
Options for Objective C:
|
|
|
254 |
-gen-decls Dump decls to a .decl file
|
|
|
255 |
-fgnu-runtime Generate code for GNU runtime environment
|
|
|
256 |
-fnext-runtime Generate code for NeXT runtime environment
|
|
|
257 |
-Wselector Warn if a selector has multiple methods
|
|
|
258 |
-Wno-protocol Do not warn if inherited methods are unimplemented
|
|
|
259 |
-print-objc-runtime-inf Generate C header of platform specific features
|
|
|
260 |
|
|
|
261 |
Options for C++:
|
|
|
262 |
-fno-access-control Do not obey access control semantics
|
|
|
263 |
-fall-virtual Make all member functions virtual
|
|
|
264 |
-falt-external-template Change when template instances are emitted
|
|
|
265 |
-fcheck-new Check the return value of new
|
|
|
266 |
-fconserve-space Reduce size of object files
|
|
|
267 |
-fno-const-strings Make string literals `char[]' instead of `const char[]'
|
|
|
268 |
-fno-default-inline Do not inline member functions by default
|
|
|
269 |
-fno-rtti Do not generate run time type descriptor information
|
|
|
270 |
-fno-for-scope Scope of for-init-statement vars extends outside
|
|
|
271 |
-fguiding-decls Implement guiding declarations
|
|
|
272 |
-fno-gnu-keywords Do not recognise GNU defined keywords
|
|
|
273 |
-fhandle-signatures Handle signature language constructs
|
|
|
274 |
-fhonor-std Treat the namespace `std' as a normal namespace
|
|
|
275 |
-fhuge-objects Enable support for huge objects
|
|
|
276 |
-fno-implement-inlines Export functions even if they can be inlined
|
|
|
277 |
-fno-implicit-templates Only emit explicit template instatiations
|
|
|
278 |
-fno-implicit-inline-te Only emit explicit instatiations of inline templates
|
|
|
279 |
-finit-priority Handle the init_priority attribute
|
|
|
280 |
-flabels-ok Labels can be used as first class objects
|
|
|
281 |
-fnew-abi Enable experimental ABI changes
|
|
|
282 |
-fno-nonnull-objects Do not assume that a reference is always valid
|
|
|
283 |
-foperator-names Recognise and/bitand/bitor/compl/not/or/xor
|
|
|
284 |
-fno-optional-diags Disable optional diagnostics
|
|
|
285 |
-fpermissive Downgrade conformance errors to warnings
|
|
|
286 |
-frepo Enable automatic template instantiation
|
|
|
287 |
-fsquangle Enable squashed name mangling
|
|
|
288 |
-fstats Display statistics accumulated during compilation
|
|
|
289 |
-fno-strict-prototype Do not assume that empty prototype means no args
|
|
|
290 |
-ftemplate-depth- Specify maximum template instantiation depth
|
|
|
291 |
-fthis-is-variable Make 'this' not be type '* const'
|
|
|
292 |
-fvtable-gc Discard unused virtual functions
|
|
|
293 |
-fvtable-thunks Implement vtables using thunks
|
|
|
294 |
-fweak Emit common-like symbols as weak symbols
|
|
|
295 |
-fxref Emit cross referencing information
|
|
|
296 |
-Wreturn-type Warn about inconsistent return types
|
|
|
297 |
-Woverloaded-virtual Warn about overloaded virtual function names
|
|
|
298 |
-Wno-ctor-dtor-privacy Don't warn when all ctors/dtors are private
|
|
|
299 |
-Wnon-virtual-dtor Warn about non virtual destructors
|
|
|
300 |
-Wextern-inline Warn when a function is declared extern, then inline
|
|
|
301 |
-Wreorder Warn when the compiler reorders code
|
|
|
302 |
-Wsynth Warn when synthesis behaviour differs from Cfront
|
|
|
303 |
-Wno-pmf-conversions Don't warn when type converting pointers to member functions
|
|
|
304 |
-Weffc++ Warn about violations of Effective C++ style rules
|
|
|
305 |
-Wsign-promo Warn when overload promotes from unsigned to signed
|
|
|
306 |
-Wold-style-cast Warn if a C style cast is used in a program
|
|
|
307 |
-Wno-non-template-frien Don't warn when non-templatized friend functions are declared within a template
|
|
|
308 |
-Wno-deprecated Don't announce deprecation of compiler features
|
|
|
309 |
|
|
|
310 |
Target specific options:
|
|
|
311 |
-malign-300 Use H8/300 alignment rules
|
|
|
312 |
-mno-h Do not generate H8/300H code
|
|
|
313 |
-mh Generate H8/300H code
|
|
|
314 |
-mrelax Enable linker relaxing
|
|
|
315 |
-mslowbyte Consider access to byte sized memory slow
|
|
|
316 |
-mno-quickcall Do not use registers for argument passing
|
|
|
317 |
-mquickcall Use registers for argument passing
|
|
|
318 |
-mint32 Make integers 32 bits wide
|
|
|
319 |
-mno-s Do not generate H8/S code
|
|
|
320 |
-ms Generate H8/S code
|
|
|
321 |
|
|
|
322 |
There are undocumented target specific options as well.
|
|
|
323 |
Usage: as [option...] [asmfile...]
|
|
|
324 |
Options:
|
|
|
325 |
-a[sub-option...] turn on listings
|
|
|
326 |
Sub-options [default hls]:
|
|
|
327 |
c omit false conditionals
|
|
|
328 |
d omit debugging directives
|
|
|
329 |
h include high-level source
|
|
|
330 |
l include assembly
|
|
|
331 |
m include macro expansions
|
|
|
332 |
n omit forms processing
|
|
|
333 |
s include symbols
|
|
|
334 |
=file set listing file name (must be last sub-option)
|
|
|
335 |
-D produce assembler debugging messages
|
|
|
336 |
--defsym SYM=VAL define symbol SYM to given value
|
|
|
337 |
-f skip whitespace and comment preprocessing
|
|
|
338 |
--gstabs generate stabs debugging information
|
|
|
339 |
--help show this message and exit
|
|
|
340 |
-I DIR add DIR to search list for .include directives
|
|
|
341 |
-J don't warn about signed overflow
|
|
|
342 |
-K warn when differences altered for long displacements
|
|
|
343 |
-L,--keep-locals keep local symbols (e.g. starting with `L')
|
|
|
344 |
-M,--mri assemble in MRI compatibility mode
|
|
|
345 |
--MD FILE write dependency information in FILE (default none)
|
|
|
346 |
-nocpp ignored
|
|
|
347 |
-o OBJFILE name the object-file output OBJFILE (default a.out)
|
|
|
348 |
-R fold data section into text section
|
|
|
349 |
--statistics print various measured statistics from execution
|
|
|
350 |
--strip-local-absolute strip local absolute symbols
|
|
|
351 |
--traditional-format Use same format as native assembler when possible
|
|
|
352 |
--version print assembler version number and exit
|
|
|
353 |
-W suppress warnings
|
|
|
354 |
--itbl INSTTBL extend instruction set to include instructions
|
|
|
355 |
matching the specifications defined in file INSTTBL
|
|
|
356 |
-w ignored
|
|
|
357 |
-X ignored
|
|
|
358 |
-Z generate object file even after errors
|
|
|
359 |
--listing-lhs-width set the width in words of the output data column of
|
|
|
360 |
the listing
|
|
|
361 |
--listing-lhs-width2 set the width in words of the continuation lines
|
|
|
362 |
of the output data column; ignored if smaller than
|
|
|
363 |
the width of the first line
|
|
|
364 |
--listing-rhs-width set the max width in characters of the lines from
|
|
|
365 |
the source file
|
|
|
366 |
--listing-cont-lines set the maximum number of continuation lines used
|
|
|
367 |
for the output data column of the listing
|
|
|
368 |
|
|
|
369 |
Report bugs to bug-gnu-utils@gnu.org
|
|
|
370 |
Usage: ld [options] file...
|
|
|
371 |
Options:
|
|
|
372 |
-a KEYWORD Shared library control for HP/UX compatibility
|
|
|
373 |
-A ARCH, --architecture ARCH
|
|
|
374 |
Set architecture
|
|
|
375 |
-b TARGET, --format TARGET Specify target for following input files
|
|
|
376 |
-c FILE, --mri-script FILE Read MRI format linker script
|
|
|
377 |
-d, -dc, -dp Force common symbols to be defined
|
|
|
378 |
-e ADDRESS, --entry ADDRESS Set start address
|
|
|
379 |
-E, --export-dynamic Export all dynamic symbols
|
|
|
380 |
-f SHLIB, --auxiliary SHLIB Auxiliary filter for shared object symbol table
|
|
|
381 |
-F SHLIB, --filter SHLIB Filter for shared object symbol table
|
|
|
382 |
-g Ignored
|
|
|
383 |
-G SIZE, --gpsize SIZE Small data size (if no size, same as --shared)
|
|
|
384 |
-h FILENAME, -soname FILENAME
|
|
|
385 |
Set internal name of shared library
|
|
|
386 |
-l LIBNAME, --library LIBNAME
|
|
|
387 |
Search for library LIBNAME
|
|
|
388 |
-L DIRECTORY, --library-path DIRECTORY
|
|
|
389 |
Add DIRECTORY to library search path
|
|
|
390 |
-m EMULATION Set emulation
|
|
|
391 |
-M, --print-map Print map file on standard output
|
|
|
392 |
-n, --nmagic Do not page align data
|
|
|
393 |
-N, --omagic Do not page align data, do not make text readonly
|
|
|
394 |
-o FILE, --output FILE Set output file name
|
|
|
395 |
-O Ignored
|
|
|
396 |
-r, -i, --relocateable Generate relocateable output
|
|
|
397 |
-R FILE, --just-symbols FILE
|
|
|
398 |
Just link symbols (if directory, same as --rpath)
|
|
|
399 |
-s, --strip-all Strip all symbols
|
|
|
400 |
-S, --strip-debug Strip debugging symbols
|
|
|
401 |
-t, --trace Trace file opens
|
|
|
402 |
-T FILE, --script FILE Read linker script
|
|
|
403 |
-u SYMBOL, --undefined SYMBOL
|
|
|
404 |
Start with undefined reference to SYMBOL
|
|
|
405 |
-v, --version Print version information
|
|
|
406 |
-V Print version and emulation information
|
|
|
407 |
-x, --discard-all Discard all local symbols
|
|
|
408 |
-X, --discard-locals Discard temporary local symbols
|
|
|
409 |
-y SYMBOL, --trace-symbol SYMBOL
|
|
|
410 |
Trace mentions of SYMBOL
|
|
|
411 |
-Y PATH Default search path for Solaris compatibility
|
|
|
412 |
-z KEYWORD Ignored for Solaris compatibility
|
|
|
413 |
-(, --start-group Start a group
|
|
|
414 |
-), --end-group End a group
|
|
|
415 |
-assert KEYWORD Ignored for SunOS compatibility
|
|
|
416 |
-Bdynamic, -dy, -call_shared
|
|
|
417 |
Link against shared libraries
|
|
|
418 |
-Bstatic, -dn, -non_shared, -static
|
|
|
419 |
Do not link against shared libraries
|
|
|
420 |
-Bsymbolic Bind global references locally
|
|
|
421 |
--cref Output cross reference table
|
|
|
422 |
--defsym SYMBOL=EXPRESSION Define a symbol
|
|
|
423 |
--dynamic-linker PROGRAM Set the dynamic linker to use
|
|
|
424 |
-EB Link big-endian objects
|
|
|
425 |
-EL Link little-endian objects
|
|
|
426 |
--embedded-relocs Generate embedded relocs
|
|
|
427 |
--force-exe-suffix Force generation of file with .exe suffix
|
|
|
428 |
--help Print option help
|
|
|
429 |
-Map FILE Write a map file
|
|
|
430 |
--no-keep-memory Use less memory and more disk I/O
|
|
|
431 |
--no-warn-mismatch Don't warn about mismatched input files
|
|
|
432 |
--no-whole-archive Turn off --whole-archive
|
|
|
433 |
--noinhibit-exec Create an output file even if errors occur
|
|
|
434 |
--oformat TARGET Specify target of output file
|
|
|
435 |
-qmagic Ignored for Linux compatibility
|
|
|
436 |
-Qy Ignored for SVR4 compatibility
|
|
|
437 |
--relax Relax branches on certain targets
|
|
|
438 |
--retain-symbols-file FILE Keep only symbols listed in FILE
|
|
|
439 |
-rpath PATH Set runtime shared library search path
|
|
|
440 |
-rpath-link PATH Set link time shared library search path
|
|
|
441 |
-shared, -Bshareable Create a shared library
|
|
|
442 |
--sort-common Sort common symbols by size
|
|
|
443 |
--split-by-file Split output sections for each file
|
|
|
444 |
--split-by-reloc COUNT Split output sections every COUNT relocs
|
|
|
445 |
--stats Print memory usage statistics
|
|
|
446 |
--task-link SYMBOL Do task level linking
|
|
|
447 |
--traditional-format Use same format as native linker
|
|
|
448 |
-Tbss ADDRESS Set address of .bss section
|
|
|
449 |
-Tdata ADDRESS Set address of .data section
|
|
|
450 |
-Ttext ADDRESS Set address of .text section
|
|
|
451 |
-Ur Build global constructor/destructor tables
|
|
|
452 |
--verbose Output lots of information during link
|
|
|
453 |
--version-script FILE Read version information script
|
|
|
454 |
--warn-common Warn about duplicate common symbols
|
|
|
455 |
--warn-constructors Warn if global constructors/destructors are seen
|
|
|
456 |
--warn-multiple-gp Warn if the multiple GP values are used
|
|
|
457 |
--warn-once Warn only once per undefined symbol
|
|
|
458 |
--warn-section-align Warn if start of section changes due to alignment
|
|
|
459 |
--whole-archive Include all objects from following archives
|
|
|
460 |
--wrap SYMBOL Use wrapper functions for SYMBOL
|
|
|
461 |
ld: supported targets: coff-h8300 srec symbolsrec tekhex binary ihex
|
|
|
462 |
ld: supported emulations: h8300 h8300h h8300s
|
|
|
463 |
|
|
|
464 |
Report bugs to bug-gnu-utils@gnu.org
|
|
|
465 |
|
|
|
466 |
For bug reporting instructions, please see:
|
|
|
467 |
<URL:http://www.gnu.org/software/gcc/faq.html#bugreport>
|