The following output options are listed in alphabetical order.
Action |
Option |
Details |
---|---|---|
Compiles only; produces object (.o) files, but suppresses linking. |
-c | |
Shows options passed by driver to the compiler, but does not compile. |
-dryrun | |
Runs only preprocessor on C++ source files, and sends result to stdout; does not compile. |
-E | |
Same as -help. |
-flags | |
Builds a dynamic shared library instead of an executable file. |
-G | |
Prints path names of included files. |
-H | |
Explains where to get information about migrating to 5.0 |
-migration | |
Sets name of the output or executable file to filename. |
-o filename | |
Only preprocesses source; outputs to .i file. |
-P | |
Causes the CC driver to produce output of the type sourcetype. |
-Qproduce sourcetype | |
Displays the contents of the online README file. |
-readme | |
Strips the symbol table from the executable file. |
-s | |
Controls compiler verbosity. |
-verbose=vlst | |
Prints extra warnings where necessary. |
+w | |
Suppresses warning messages. |
-w | |
Outputs makefile dependency information. |
-xM | |
Generates dependency information, but excludes /usr/include. |
-xM1 | |
Produces table information for the Sun WorkShop source code browser. |
-xsb | |
Produces only source browser information, no compilation. |
-xsbfast | |
Reports execution time for each compilation phase. |
-xtime | |
Converts all warnings to errors by returning non-zero exit status. |
-xwe |