Developer Guide and Reference

Contents

Using Response Files

You can use response files to:
  • Specify options used during particular compilations or projects.
  • Save this information in individual files.
Response files are invoked as options on the command line. Options in response files are inserted in the command line at the point where the response file is invoked. Unlike configuration files, which are automatically processed every time you run the compiler, response files must be invoked as an option on the command line. If you create a response file without specifying it on the command line, it will not be invoked.

Sample Response Files

Example
# (Linux*
and
macOS*
) # response file: response1.txt # compile with these options
-w0
# end of response1 file # response file: response2.txt # compile with these options
-O0
# end of response2 file
# (Windows*) # response file: response1.txt # compile with these options
/W0
# end of response1 file # response file: response2.txt # compile with these options
/Od
# end of response2 file
Use response files to decrease the time spent entering command-line options and to ensure consistency by automating command-line entries. Use individual response files to maintain options for specific projects.
Any number of options or file names can be placed on a line in a response file. Several response files can be referenced in the same command line. The following example shows how to specify a response file on the command line:
Example
# (Linux*) icpc @response1.txt prog1.cpp @response2.txt prog2.cpp
# (
macOS*
) icpc @response1.txt prog1.cpp @response2.txt prog2.cpp
# (Windows*) icl @response1.txt prog1.cpp @response2.txt prog2.cpp
An "at" sign (
@
) must precede the name of the response file on the command line.

Product and Performance Information

1

Intel's compilers may or may not optimize to the same degree for non-Intel microprocessors for optimizations that are not unique to Intel microprocessors. These optimizations include SSE2, SSE3, and SSSE3 instruction sets and other optimizations. Intel does not guarantee the availability, functionality, or effectiveness of any optimization on microprocessors not manufactured by Intel. Microprocessor-dependent optimizations in this product are intended for use with Intel microprocessors. Certain optimizations not specific to Intel microarchitecture are reserved for Intel microprocessors. Please refer to the applicable product User and Reference Guides for more information regarding the specific instruction sets covered by this notice.

Notice revision #20110804