Sun Java Solaris Communities My SDN Account Join SDN
 
Compiler Options

Code-Generation Options by Language

Sun Studio
Patches
 
Documentation
Code Samples & Apps
Technical Articles & Tips
 
Forums
Blogs
 
 
 

  • See the C++ list
  • See the F95 list

C Code-Generation Options

Option Meaning
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-mt Indicates compilation and linking for multithreaded code.
-xcode Specifies code address space.
-xMerge Merges the data segment of the object files with the text segment.
-xmodel Enables the compiler to modify the form of 64-bit objects for the Solaris x86 platforms and should only be specified for the compilation of such objects.
-xregs Makes available additional scratch registers for use during compilation.

C++ Code-Generation Options

Option Meaning
-compat Sets the major release compatibility mode of the compiler.
+e Controls virtual table generation in compatibility mode (-compat[=4]).
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-mt Indicates compilation and linking for multithreaded code.
+w Identifies code that might have unintended consequences.
+w2 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.
-xcode Specifies code address space.
-xMerge Merges the data segment of the object files with the text segment.
-xmodel Enables the compiler to modify the form of 64-bit objects for the Solaris x86 platforms and should only be specified for the compilation of such objects.
-xregs Makes available additional scratch registers for use during compilation.

F95 Code-Generation Options

Option Meaning
-g Instructs both the compiler and the linker to prepare the file or program for debugging.
-mt Indicates compilation and linking for multithreaded code.
-xcode Specifies code address space.
-xmodel Enables the compiler to modify the form of 64-bit objects for the Solaris x86 platforms and should only be specified for the compilation of such objects.
-xregs Makes available additional scratch registers for use during compilation.

Related Links