Go to main content
Oracle® Developer Studio 12.5: C User's Guide

Exit Print View

Updated: June 2017
 
 

2.16 Environment Variables

This section lists environment variables that enable you to control the compilation and runtime environment.

See also the Oracle Developer Studio 12.5: OpenMP API User’s Guide for descriptions of environment variables related to OpenMP and automatic parallelization.

2.16.1 SUN_PROFDATA

Controls the name of the file in which the -xprofile=collect command stores execution-frequency data.

2.16.2 SUN_PROFDATA_DIR

Controls in which directory the -xprofile=collect command places the execution-frequency data file.

2.16.3 TMPDIR

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.

Bourne shell:

$ TMPDIR=dir; export TMPDIR

C shell:

% setenv TMPDIR dir