Developer Guide and Reference

Contents

Other Considerations

There are some notable differences between the Intel® C++ Compiler and the Microsoft* compiler. Consider the following as you begin compiling your code with the Intel® C++ Compiler.

Setting the Environment

The compiler installation provides a batch file,
compilervars.bat
, that sets the proper environment for the Intel® C++ Compiler. For information on running
compilervars.bat
, see

Using Optimization

The Intel® C++ Compiler is an optimizing compiler that begins with the assumption that you want improved performance from your application when it is executed on Intel® architecture. Consequently, certain optimizations, such as option
O2
, are part of the default invocation of the Intel® C++ Compiler. By default, Microsoft* turns off optimization, which is the equivalent of compiling with options
Od
or
O0
. Other forms of the
O
[
n
] option compare as follows:
Option
Intel® C++ Compiler
Microsoft* Compiler
/Od
Turns off all optimization. Same as
O0
.
Default. Turns off all optimization.
/O1
Decreases code size with some increase in speed.
Optimizes code for minimum size.