Sun Studio 12: C User's Guide

A.1.5 Parallelization Options

Table A–5 Parallelization Options Table

Option  

Action  

-mt

Macro option that expands to -D_REENTRANT -lthread.

-xautopar

(SPARC) Turns on automatic parallelization for multiple processors.

-xcheck

(SPARC) Adds a runtime check for stack overflow.

-xdepend

(SPARC) Analyzes loops for inter-iteration data dependencies and does loop restructuring. 

-xexplicitpar

(SPARC) Generates parallelized code based on specification of #pragma MP directives.

-xloopinfo

(SPARC) Shows which loops are parallelized and which are not.

-xopenmp

(SPARC) Supports the OpenMP interface for explicit parallelization including a set of source code directives, run-time library routines, and environment variables

-xparallel

(SPARC) Parallelizes loops both automatically by the compiler and explicitly specified by the programmer.

-xreduction

(SPARC) Turns on reduction recognition during automatic parallelization.

-xrestrict

(SPARC) Treats pointer-valued function parameters as restricted pointers. 

-xvpara

(SPARC) Warns about loops that have #pragma MP directives specified but may not be properly specified for parallelization.

-xthreadvar

(SPARC) Controls the implementation of thread local variables. 

-Zll

(SPARC) Creates the program database for lock_lint, but does not generate executable code.