Temporary files created by the compiler or linker reside in the directory used by the operating system to store temporary files.
To store temporary files, the driver first checks for the TMP environment variable. If defined, the directory that TMP points to is used to store temporary files.
If the TMP environment variable is not defined, the driver then checks for the TMPDIR environment variable. If defined, the directory that TMPDIR points to is used to store temporary files.
If the TMPDIR environment variable is not defined, the driver then checks for the TEMP environment variable. If defined, the directory that TEMP points to is used to store temporary files.
If the TEMP environment variable is not defined, the /tmp directory is used to store temporary files.