5.1.2 Environment Variables
The environment variables in this section are optional, but if defined, they will be used by the compiler. The compiler driver (or other subprogram) may choose to determine an appropriate value for some of the following environment variables if they are not set. The driver (or other subprogram) takes advantage of internal knowledge about the installation of the compiler. As long as the installation structure remains intact, with all subdirectories and executables remaining in the same relative position, the driver or subprogram will be able to determine a usable value.
The XC32-style variables should be used for new projects; however, the PIC32-style variables may be used for legacy projects.
Variable | Description |
---|---|
XC32_C_INCLUDE_PATH or
PIC32_C_INCLUDE_PATH |
This variable’s value is a
semicolon-separated list of directories, much like your host
terminal's If the environment variable is undefined, the preprocessor chooses an appropriate value based on the standard installation. By default, the following directories are searched for the following include files: <install-path>\pic32mx\include. |
XC32_COMPILER_PATH or
PIC32_COMPILER_PATH |
The value of this variable is a
semicolon-separated list of directories, much like your host terminal's
PATH environment variable. The compiler tries the
directories thus specified when searching for subprograms, if it can’t
find the subprograms using PIC32M_EXEC_PREFIX . |
XC32_EXEC_PREFIX or
PIC32_EXEC_PREFIX |
If this environment variable is set, it specifies a
prefix to use in the names of subprograms executed by the compiler.
No directory delimiter is added when this prefix is combined with
the name of a subprogram, but you can specify a prefix that ends
with a slash if you wish. If the compiler cannot find the subprogram
using the specified prefix, it tries looking in your
If the environment variable is not set or set to an empty value, the compiler driver chooses an appropriate value based on the standard installation. If the installation has not been modified, this will result in the driver being able to locate the required subprograms. Other prefixes specified with the Under normal circumstances it is best to leave this value undefined and let the driver locate subprograms itself. |
XC32_LIBRARY_PATH or
PIC32_LIBRARY_PATH |
This variable’s value is a semicolon-separated list of
directories, much like
|
TMPDIR |
If this variable is set, it specifies the directory to use for temporary files. The compiler uses temporary files to hold the output of one stage of compilation that is to be used as input to the next stage: for example, the output of the preprocessor, which is the input to the compiler proper. |