|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Studio 12.3: C User's Guide Oracle Solaris Studio 12.3 Information Library|
This section lists the environment variables that enable you to control the compilation and runtime environment. See also the Oracle Solaris Studio OpenMP API User's Guide for descriptions of environment variables related to OpenMP parallelization.
Specifies the number of processors available to the program for multiprocessor execution. If the target machine has multiple processors, the threads can map to independent processors. Running the program leads to the creation of two threads that execute the parallelized portions of the program.
cc normally creates temporary files in the directory /tmp. You can specify another directory by setting the environment variable TMPDIR to the directory of your choice. However, if TMPDIR is not a valid directory, cc uses /tmp. The -xtemp option has precedence over the TMPDIR environment variable.
$ TMPDIR=dir; export TMPDIR
% setenv TMPDIR dir