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

Exit Print View

Updated: July 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.6: OpenMP API User’s Guide for descriptions of environment variables related to OpenMP and automatic parallelization.


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


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