Option |
Action |
---|---|
–c |
Compiles only; produces object (.o) files, but suppresses linking. |
–dryrun |
Shows options passed by the driver to the compiler, but does not compile. |
–E |
Runs only the preprocessor on the C++ source files and sends result to stdout. Does not compile. |
-erroff |
Suppresses compiler warning messages. |
-errtags |
Displays the message tag for each warning message. |
-errwarn |
If the indicated warning message is issued, cc exits with a failure status. |
-filt |
Suppresses the filtering that the compiler applies to linker error messages. |
–G |
Builds a dynamic shared library instead of an executable file. |
–H |
Prints path names of included files. |
–migration |
Explains where to get information about migrating from earlier compilers. |
–o filename |
Sets name of the output or executable file to filename. |
–P |
Only preprocesses source; outputs to .i file. |
–Qproduce sourcetype |
Causes the CC driver to produce output of the type sourcetype. |
–s |
Strips the symbol table out of the executable file. |
–verbose=vlst |
Controls compiler verbosity. |
+w |
Prints extra warnings where necessary. |
–w |
Suppresses warning messages. |
-xdumpmacros |
Prints information about macros such as definition, location defined and undefined, and locations used. |
-xe |
Performs only syntax and semantic checking on the source file, but does not produce any object or executable code. |
–xhelp=flags |
Displays a summary list of compiler options |
–xhelp=readme |
Displays the contents of the online README file. |
–xM |
Outputs makefile dependency information. |
–xM1 |
Generates dependency information, but excludes /usr/include. |
–xsb |
Produces table information for the source browser. |
–xsbfast |
Produces only source browser information, no compilation. |
–xtime |
Reports execution time for each compilation phase. |
–xwe |
Converts all warnings to errors by returning non-zero exit status. |
-z arg |