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