Using Configuration Files
You can decrease the time you spend entering command-line options by using the configuration file to automate command-line entries. Configuration files are automatically processed every time you run the Intel®
C++Compiler. You can insert any valid command-line options into the configuration file. The compiler processes options in the configuration file in the order in which they appear, followed by the specified command-line options when the compiler is invoked.
Sample Configuration Files
The default configuration
fileslocated in the same directory as the compiler executable file. If you want to use a different configuration file than the default, you can use the
to specify the location of another configuration file.
ICCCFG/ICPCCFG(for Linux* and
ICLCFG(for Windows) environment variables
Anytime you instruct the compiler to use a different configuration file, the default configuration file(s) are ignored.
The following examples illustrate basic configuration files. The pound (
#) character indicates that the rest of the line is a comment.
In the Windows* examples, the compiler reads the configuration file and invokes the
Ioption every time you run the compiler, along with any options specified on the command line.