Option |
Language |
Meaning |
-# |
C
|
Turns on verbose modes, showing how command options expand. Shows
each component as it is invoked.
|
-### |
C
|
Shows each component as it would be invoked, but does not actually
execute it. Also shows how command options would expand.
|
-c |
C C++ F95
|
Suppresses linking with the linker and, instead, produces a .o file
for each source file.
|
-dryrun |
C++ F95
|
Shows each component as it would be invoked, but does not actually
execute it. Also shows how command options would expand.
|
-E |
C C++
|
Directs the CC driver to only preprocess the C++ source files,
and to send the result to stdout (standard output).
|
-erroff |
C C++ F95
|
Suppresses compiler warning messages but has no effect on error messages.
|
-errtags |
C C++ F95
|
Displays the message tag for each warning message of the compiler
front-end that can be suppressed with the -erroffoption or made a fatal
error with the -errwarn option.
|
-errwarn |
C C++ F95
|
Causes the compiler to exit with a failure status for the given
warning messages.
|
-filt |
C++
|
Suppress the filtering that the C++ compiler normally applies to
linker error messages.
|
-G |
C C++ F95
|
Build a dynamic shared library instead of an executable file. |
-H |
C C++
|
Prints the path name of each include file contained in the
current compilation to the standard error output.
|
-migration |
C++
|
Explains where to get information about migrating source code that
was built for earlier versions of the compiler.
|
-o |
C C++ F95
|
Sets the name of the output file (with the suffix .o) or the
executable file.
|
-P |
C C++
|
Only preprocesses source; does not compile. |
-Q |
C
|
Emits identification information to the output file. |
-S |
C C++ F95
|
Compiles and generates only assembly code. |
-s |
C C++ F95
|
Strips the symbol table from the executable file. |
-v |
F95
|
Verbose mode - shows compilation details. |
-v |
C
|
Performs more and stricter semantic checks, and enables certain
lint-like checks on the named C files.
|
-verbose |
C++
|
Controls compiler verbosity. |
+w |
C++
|
Identifies code that might have unintended consequences. |
+w2 |
C++
|
Emits the same warnings as +w as well as warnings about
technical violations that are probably harmless, but that might reduce the
maximum portability of your program.
|
-w |
C C++ F95
|
Suppresses warning messages. |
-Xlist |
F95
|
Finds potential programming bugs. Invokes an extra compiler pass to
check for consistency in calls and common across the global program.
|
-xdryrun |
C
|
Shows each component as it would be invoked, but does not actually
execute it. Also shows how command options would expand.
|
-xdumpmacros |
C++
|
Shows how macros are behaving in your program. |
-xe |
C C++
|
Checks only for syntax and semantic errors. |
-xhelp |
C C++ F95
|
Displays online help for compiler options or latest readme. |
-xM1 |
C C++
|
Same as -xM, except that this option does not report
dependencies for the /usr/include header files and it does not report
dependencies for compiler-supplied header files.
|
-xM |
C C++
|
Runs only the preprocessor on the named C++ programs, requesting
that it generate makefile dependencies and send the result to the standard
outputx
|
-xsbfast |
C
|
Creates the database for the Source Browser, but does not actually compile. |
-xtime |
C C++ F95
|
Causes the CC driver to report execution times for the various
compilation passes.
|
-xwe |
C++
|
Converts all warnings to errors by returning non-zero exit status.
|
-z |
C++
|
Link editor option. |