Chapter 4. GCC Command Options
even if they are found to be invalid; an invalid precompiled header file is printed with
a valid one with
-version
-version
Print out GNU CPP's version number. With one dash, proceed to preprocess as normal. With two
dashes, exit immediately.
4.12. Passing Options to the Assembler
You can pass options to the assembler.
-Wa,
option
Pass
as an option to the assembler. If
option
options at the commas.
-Xassembler
option
Pass
as an option to the assembler. You can use this to supply system-specific assembler
option
options which GCC does not know how to recognize.
If you want to pass an option that takes an argument, you must use
for the option and once for the argument.
4.13. Options for Linking
These options come into play when the compiler links object files into an executable output file. They
are meaningless if the compiler is not doing a link step.
object-file-name
A file name that does not end in a special recognized suffix is considered to name an object file or
library. (Object files are distinguished from libraries by the linker according to the file contents.)
If linking is done, these object files are used as input to the linker.
-c
-S
-E
If any of these options is used, then the linker is not run, and object file names should not be
used as arguments. Section 4.2 Options Controlling the Kind of Output.
-l
library
-l
library
Search the library named
separate argument is only for POSIX compliance and is not recommended.)
It makes a difference where in the command you write this option; the linker searches and pro-
cesses libraries and object files in the order they are specified. Thus,
library
after file
z
may not be loaded.
The linker searches a standard list of directories for the library, which is actually a file named
. The linker then uses this file as if it had been specified precisely by name.
lib
.a
library
.
...!
when linking. (The second alternative with the library as a
library
but before
foo.o
contains commas, it is split into multiple
option
. If
refers to functions in
bar.o
bar.o
...x
twice, once
-Xassembler
foo.o -lz bar.o
, those functions
z
81
and
searches
Need help?
Do you have a question about the ENTERPRISE LINUX 4 and is the answer not in the manual?