Sun Studio 12: C User's Guide

A.1.8 Compilation-Mode Options

Table A–8 Compilation-Mode Options Table

Option  

Action  

-#

Turns on verbose mode, which shows how command options expand and shows each component as it is invoked.

-###

Shows each component as it would be invoked, but does not actually execute it. Also shows how command options expand.

-features

Ensures compatibility between old binaries with extern inline functions and new binaries.

-keeptmp

Retains temporary files created during compilation instead of deleting them automatically.

-V

Directs cc to print the name and version ID of each component as the compiler executes.

-W

Passes arguments to C compilation-system components.

-X

The -X options specify varying degrees of compliance to the ISO C standard.

-xc99

Controls compiler recognition of supported C99 features.

-xchar

Preserves the sign of a char

-xhelp

Displays on-line help information.

-xjobs

Sets how many processes the compiler creates.

-xpch

Reduces compile time for applications whose source files share a common set of include files.

-xpchstop

Can be used in conjunction with -xpch to specify the last include file of the viable prefix.

-xtemp

Sets the directory for temporary files used by cc to dir.

-xtime

Reports the time and resources used by each compilation component.

-Y

Specifies a new directory for the location of a C compilation-system component.

-YA

Changes the default directory searched for components.

-YI

Changes the default directory searched for include files.

-YP

Changes the default directory for finding library files.

-YS

Changes the default directory for startup object files.