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.
If you use a Bourne shell, type:
$ TMPDIR=dir; export TMPDIR
If you use a C shell, type:
% setenv TMPDIR dir
The absolute path name of the directory containing the .sbinit(5) file. This variable is used only if the -xsb or -xsbfast flag is used.
(SPARC) Refer to "Environment Variables" for details.