Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Tells the compiler to conform to the ISO/IEC 9899:1999 International Standard.
Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Invoke the Intel Fortran compiler
Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Tells the compiler to conform to the ISO/IEC 9899:1999 International Standard.
Invoke the Intel Fortran compiler
Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Tells the compiler to conform to the ISO/IEC 9899:1999 International Standard.
Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Invoke the Intel Fortran compiler
Invoke the Intel C++ compiler
Default:
When the compiler is installed, it detects which version of Visual Studio
is on your system. Qvc defaults to the form of the option that is compatible
with that version. When multiple versions of Visual Studio are installed the
compiler installation lets you select which version you want to use.
This option specifies compatibility with Visual C++ or Visual Studio.
QVC7.1 - Microsoft Visual Studio .NET 2003
QVC8 - Microsoft Visual Studio 2005
QVC9 - Microsoft Visual Studio 2008
Tells the compiler to conform to the ISO/IEC 9899:1999 International Standard.
Invoke the Intel Fortran compiler
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Tell the compiler to assume that routine names end with an underscore
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
For mixed-language benchmarks, tell the compiler to convert routine names to lowercase for compatibility
Tell the compiler to assume that routine names end with an underscore
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Tell the compiler to treat source files as C++ regardless of the file extension
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Defined if the compiler refuses to allow the explicit specialization of static member variables.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Definitions for Windows and Intel Compiler
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
SPEC_CPU_NOZMODIFIER can be used if your compiler does not implement the C99 standard printf length modifier "z". You'll know you need this flag if validation fails with the file SPECtestformatmodifier_z.txt
For mixed-language benchmarks, tell the compiler to convert routine names to lowercase for compatibility
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This macro indicates that the benchmark is being built on a Windows system using the Intel C++ compiler.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Tell the compiler to assume that routine names end with an underscore
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
For mixed-language benchmarks, tell the compiler to convert routine names to lowercase for compatibility
Tell the compiler to assume that routine names end with an underscore
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Tell the compiler to treat source files as C++ regardless of the file extension
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Defined if the compiler refuses to allow the explicit specialization of static member variables.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Definitions for Windows and Intel Compiler
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
SPEC_CPU_NOZMODIFIER can be used if your compiler does not implement the C99 standard printf length modifier "z". You'll know you need this flag if validation fails with the file SPECtestformatmodifier_z.txt
For mixed-language benchmarks, tell the compiler to convert routine names to lowercase for compatibility
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
This macro indicates that the benchmark is being built on a Windows system using the Intel C++ compiler.
This option is used to indicate that the host system's integers and longs, are 32-bits wide, and pointers are 64-bits wide. Not all benchmarks recognize this macro, but the preferred practice for data model selection applies the flags to all benchmarks; this flag description is a placeholder for those benchmarks that do not recognize this macro.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
set the stack reserve amount specified to the linker.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
Enable C++ Exception Handling and RTTI
This option has the same effect as specifying /GX /GR.
set the stack reserve amount specified to the linker.
64-bit MicroQuill SmartHeap Library 8.0 for Windows available from http://www.microquill.com/
This library is the thread-safe version.
Enable SmartHeap library usage by forcing the linker to ignore multiple definitions
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
set the stack reserve amount specified to the linker.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
set the stack reserve amount specified to the linker.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option tells the compiler to assume there is no aliasing.
set the stack reserve amount specified to the linker.
64-bit MicroQuill SmartHeap Library 8.0 for Windows available from http://www.microquill.com/
This library is the thread-safe version.
Enable SmartHeap library usage by forcing the linker to ignore multiple definitions
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
This option tells the compiler to assume that the program adheres to ISO C Standard aliasability rules.
If your program adheres to these rules, then this option allows the compiler to optimize more aggressively. If it doesn't adhere to these rules, then it can cause the compiler to generate incorrect code.
This option enables scalar replacement performed during loop transformation. To use this option, you must also specify O3.
-Qscalar-rep- disables this feature. (default)
set the stack reserve amount specified to the linker.
64-bit MicroQuill SmartHeap Library 8.0 for Windows available from http://www.microquill.com/
This library is the thread-safe version.
Enable SmartHeap library usage by forcing the linker to ignore multiple definitions
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
set the stack reserve amount specified to the linker.
64-bit MicroQuill SmartHeap Library 8.0 for Windows available from http://www.microquill.com/
This library is the thread-safe version.
Enable SmartHeap library usage by forcing the linker to ignore multiple definitions
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
This option tells the compiler to assume that the program adheres to ISO C Standard aliasability rules.
If your program adheres to these rules, then this option allows the compiler to optimize more aggressively. If it doesn't adhere to these rules, then it can cause the compiler to generate incorrect code.
set the stack reserve amount specified to the linker.
64-bit MicroQuill SmartHeap Library 8.0 for Windows available from http://www.microquill.com/
This library is the thread-safe version.
Enable SmartHeap library usage by forcing the linker to ignore multiple definitions
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
Specifies the level of inline function expansion.
Ob0 - Disables inlining of user-defined functions. Note that statement functions are always inlined.
Ob1 - Enables inlining when an inline keyword or an inline attribute is specified. Also enables inlining according to the C++ language.
Ob2 - Enables inlining of any function at the compiler's discretion.
This option tells the compiler to assume that the program adheres to ISO C Standard aliasability rules.
If your program adheres to these rules, then this option allows the compiler to optimize more aggressively. If it doesn't adhere to these rules, then it can cause the compiler to generate incorrect code.
This option enables scalar replacement performed during loop transformation. To use this option, you must also specify O3.
-Qscalar-rep- disables this feature. (default)
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
Specifies the level of inline function expansion.
Ob0 - Disables inlining of user-defined functions. Note that statement functions are always inlined.
Ob1 - Enables inlining when an inline keyword or an inline attribute is specified. Also enables inlining according to the C++ language.
Ob2 - Enables inlining of any function at the compiler's discretion.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
This option places local variables, except those declared as SAVE, to the run-time stack. It is as if the variables were declared with the AUTOMATIC attribute.
It does not affect variables that have the SAVE attribute or ALLOCATABLE attribute, or variables that appear in an EQUIVALENCE statement or in a common block.
This option may provide a performance gain for your program, but if your program depends
on variables having the same value as the last time the routine was invoked, your program
may not function properly.
If you want to cause variables to be placed in static memory, specify /Qsave (Windows).
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
set the stack reserve amount specified to the linker.
Instrument program for profiling for the first phase of two-phase profile guided otimization. This instrumentation gathers information about a program's execution paths and data values but does not gather information from hardware performance counters. The profile instrumentation also gathers data for optimizations which are unique to profile-feedback optimization.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Instructs the compiler to produce a profile-optimized
executable and merges available dynamic information (.dyn)
files into a pgopti.dpi file. If you perform multiple
executions of the instrumented program, -Qprof_use merges
the dynamic information files again and overwrites the
previous pgopti.dpi file.
Without any other options, the current directory is
searched for .dyn files
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
set the stack reserve amount specified to the linker.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
set the stack reserve amount specified to the linker.
Tells the compiler to generate optimized code specialized for the Intel processor
that executes your program.
Syntax -Qx(processor)
(processor)indicates the processor for which code is generated. Many of the following descriptions refer to Intel® Streaming SIMD Extensions
Host
Can generate instructions for the highest instruction set available on the compilation
host processor.
On Intel processors, this may correspond to the most suitable –x (Linux* and Mac OS* X)
or /Qx (Windows*) option. On non-Intel processors, this may correspond to the most suitable
–m (Linux and Mac OS X) or /arch (Windows) option. The resulting executable may not run on
a processor different from the host in the following cases:
If the processor does not support all of the instructions supported by the host processor.
If the host is an Intel processor and the other processor is a non-Intel processor.
AVX
Optimizes for Intel processors that support Intel® Advanced Vector Extensions (Intel® AVX).
SSE4.2
Can generate Intel® SSE4 Efficient Accelerated String and Text Processing instructions
supported by Intel® Core™ i7 processors. Can generate Intel® SSE4 Vectorizing Compiler
and Media Accelerator, Intel® SSSE3, SSE3, SSE2, and SSE instructions and it can optimize
for the Intel® Core™ processor family.
SSE4.1
Can generate Intel® SSE4 Vectorizing Compiler and Media Accelerator instructions for
Intel processors. Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions and it
can optimize for Intel® 45nm Hi-k next generation Intel® Core™ microarchitecture.
This replaces value S, which is deprecated.
SSE3_ATOM
Optimizes for the Intel® Atom™ processor and Intel® Centrino® Atom™ Processor Technology.
Can generate MOVBE instructions, depending on the setting of option -minstruction
(Linux and Mac OS) or /Qinstruction (Windows).
SSSE3
Can generate Intel® SSSE3, SSE3, SSE2, and SSE instructions for Intel processors and it
can optimize for the Intel® Core™2 Duo processor family. For Mac OS* X systems, this
value is only supported on Intel® 64 architecture. This replaces value T, which is
deprecated.
SSE3
Can generate Intel® SSE3, SSE2, and SSE instructions for Intel processors and it can
optimize for processors based on Intel® Core™ microarchitecture and Intel
NetBurst® microarchitecture. For Mac OS* X systems, this value is only supported on
IA-32 architecture.This replaces value P, which is deprecated.
SSE2
Can generate Intel® SSE2 and SSE instructions for Intel processors, and it can
optimize for Intel® Pentium® 4 processors, Intel® Pentium® M processors, and
Intel® Xeon® processors with Intel® SSE2. This value is not available on Mac OS* X
systems. This replaces value N, which is deprecated.
Default
Windows systems: None
Linux systems: None
Mac OS X systems using IA-32 architecture: SSE3
Mac OS X systems using Intel® 64 architecture: SSSE3
On Windows systems, if neither /Qx nor /arch is specified, the default is /arch:SSE2.
On Linux systems, if neither -x nor -m is specified, the default is -msse2.
Description
This option tells the compiler to generate optimized code specialized for the Intel
processor that executes your program. It also enables optimizations in addition to
Intel processor-specific optimizations. The specialized code generated by this
option may run only on a subset of Intel processors.
This option can enable optimizations depending on the argument specified. For example, it may enable Intel® Streaming SIMD Extensions 4 (Intel® SSE4), Intel® Supplemental Streaming SIMD Extensions 3 (Intel® SSSE3), Intel® Streaming SIMD Extensions 3 (Intel® SSE3), Intel® Streaming SIMD Extensions 2 (Intel® SSE2), or Intel® Streaming SIMD Extensions (Intel® SSE) instructions.
The binaries produced by these values will run on Intel processors that support all of the features for the targeted processor. For example, binaries produced with SSE3 will run on an Intel® Core™ 2 Duo processor, because that processor completely supports all of the capabilities of the Intel® Pentium® 4 processor, which the SSE3 value targets. Specifying the SSSE3 value has the potential of using more features and optimizations available to the Intel® Core™ 2 Duo processor.
Do not use processor values to create binaries that will execute on a processor that is not compatible with the targeted processor. The resulting program may fail with an illegal instruction exception or display other unexpected behavior. For example, binaries produced with SSE3 may produce code that will not run on Intel® Pentium® III processors or earlier processors that do not support SSE3 instructions.
Compiling the function main() with any of the processor values produces binaries that display a fatal run-time error if they are executed on unsupported processors. For more information, see Optimizing Applications.
If you specify more than one processor value, code is generated for only the highest-performing processor specified. The highest-performing to lowest-performing processor values are: SSE4.2, SSE4.1, SSSE3, SSE3, SSE2.Note that processor values AVX and SSE3_ATOM do not fit within this group.
Compiler options m and arch produce binaries that should run on processors not made by Intel that implement the same capabilities as the corresponding Intel processors.
Previous value O is deprecated and has been replaced by option -msse3 (Linux and Mac OS X) and option /arch:SSE3 (Windows).
Previous values W and K are deprecated. The details on replacements are as follows:
There is no exact replacement for K. However, on Windows systems, /QxK is interpreted as /arch:IA32; on Linux systems, -xK is interpreted as -mia32. You can also do one of the following:
The -x and /Qx options enable additional optimizations not enabled with option -m or option /arch.
On Windows* systems, options /Qx and /arch are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning. Similarly, on Linux* and Mac OS* X systems, options -x and -m are mutually exclusive. If both are specified, the compiler uses the last one specified and generates a warning.
This option instructs the compiler to analyze and transform the program so that 64-bit pointers are shrunk to 32-bit pointers, and 64-bit longs (on Linux) are shrunk into 32-bit longs wherever it is legal and safe to do so. In order for this option to be effective the compiler must be able to optimize using the -ipo/-Qipo option and must be able to analyze all library/external calls the program makes.
This option requires that the size of the program executable never exceeds 2**32 bytes and all data values can be represented within 32 bits. If the program can run correctly in a 32-bit system, these requirements are implicitly satisfied. If the program violates these size restrictions, unpredictable behavior might occur.
Multi-file ip optimizations that includes:
- inline function expansion
- interprocedural constant propogation
- dead code elimination
- propagation of function characteristics
- passing arguments in registers
- loop-invariant code motion
Enables O2 optimizations plus more aggressive optimizations, such as prefetching, scalar replacement, and loop and memory access transformations. Enables optimizations for maximum speed, such as:
On Windows systems, the O3 option sets the /GF (/Qvc7 and above), /Gf (/Qvc6 and below), and /Ob2 option.
On Linux and Mac OS X systems, the O3 option sets option -fomit-frame-pointer.
On systems using IA-32 architecture or Intel64 architecture, when O3 is used with options -ax or -x (Linux) or with options /Qax or /Qx (Windows), the compiler performs more aggressive data dependency analysis than for O2, which may result in longer compilation times.
On systems using IA-64 architecture, the O3 option enables optimizations for technical computing applications (loop-intensive code): loop\ optimizations and data prefetch.
The O3 optimizations may not cause higher performance unless loop and
memory access transformations take place. The optimizations may slow
down code in some cases compared to O2 optimizations.
The O3 option is recommended for applications that have loops that heavily
use floating-point calculations and process large data sets.
This option improves precision of floating-point divides. It has a slight impact on speed.
With some optimizations, such as -xSSE2 (Linux) or /QxSSE2 (Windows), the compiler may change floating-point division computations into multiplication by the reciprocal of the denominator. For example, A/B is computed as A * (1/B) to improve the speed of the computation.
However, sometimes the value produced by this transformation is not as accurate as full IEEE division. When it is important to have fully precise IEEE division, use this option to disable the floating-point division-to-multiplication optimization. The result is more accurate, with some loss of performance.
If you specify -no-prec-div (Linux and Mac OS X) or /Qprec-div- (Windows), it enables optimizations that give slightly less precise results than full IEEE division.
Default: -prec-div or/Qprec-div
This option enables or disables prefetch insertion optimization. The goal of prefetching is to reduce cache misses by providing hints to the processor about when data should be loaded into the cache.
On IA-32 architecture and Intel 64 architecture, this option enables prefetching when higher optimization levels are specified.
This option tells the auto-parallelizer to generate multithreaded code for loops
that can be safely executed in parallel.
To use this option, you must also specify option O2 or O3.
set the stack reserve amount specified to the linker.
This section contains descriptions of flags that were included implicitly by other flags, but which do not have a permanent home at SPEC.
This option enables read only string-pooling optimization.
This option enables read/write string-pooling optimization.
Specifies the level of inline function expansion.
Ob0 - Disables inlining of user-defined functions. Note that statement functions are always inlined.
Ob1 - Enables inlining when an inline keyword or an inline attribute is specified. Also enables inlining according to the C++ language.
Ob2 - Enables inlining of any function at the compiler's discretion.
Enables optimizations for speed. This is the generally recommended
optimization level. This option also enables:
- Inlining of intrinsics
- Intra-file interprocedural optimizations, which include:
- inlining
- constant propagation
- forward substitution
- routine attribute propagation
- variable address-taken analysis
- dead static function elimination
- removal of unreferenced variables
- The following capabilities for performance gain:
- constant propagation
- copy propagation
- dead-code elimination
- global register allocation
- global instruction scheduling and control speculation
- loop unrolling
- optimized code selection
- partial redundancy elimination
- strength reduction/induction variable simplification
- variable renaming
- exception handling optimizations
- tail recursions
- peephole optimizations
- structure assignment lowering and optimizations
- dead store elimination
On IA-32 Windows platforms, -O2 sets the following:
/Og, /Oi-, /Os, /Oy, /Ob2, /GF (/Qvc7 and above), /Gf (/Qvc6
and below), /Gs, and /Gy.
Disables inline expansion of all intrinsic functions.
This option disables stack-checking for routines with 4096 bytes of local variables and compiler temporaries.
Allows use of EBP as a general-purpose register in optimizations.
This option tells the compiler to separate functions into COMDATs for the linker.
This option enables most speed optimizations, but disables some that increase code size for a small speed benefit.
This option enables global optimizations.
Enables optimizations for speed and disables some optimizations that
increase code size and affect speed.
To limit code size, this option:
- Enables global optimization; this includes data-flow analysis,
code motion, strength reduction and test replacement, split-lifetime
analysis, and instruction scheduling.
- Disables intrinsic recognition and intrinsics inlining.
The O1 option may improve performance for applications with very large code size, many branches, and execution time not dominated by code within loops.
On IA-32 Windows platforms, -O1 sets the following:
/Qunroll0, /Oi-, /Op-, /Oy, /Gy, /Os, /GF (/Qvc7 and above),
/Gf (/Qvc6 and below), /Ob2, and /Og
Tells the compiler the maximum number of times to unroll loops.
If you do not specify n, the optimizer determines how many times loops can be unrolled.
Disables conformance to the ANSI C and IEEE 754 standards for floating-point arithmetic.
This option enables C++ exception handling.
Enables C++ Run Time Type Information (RTTI).
Platform settings
One or more of the following settings may have been set. Please see the Notes section of the report to determine which, if any, have been modified.
Adjacent Cache Line Prefetch:
This BIOS option allows the enabling/disabling of a processor mechanism to fetch the adjacent cache line within an 128-byte sector that contains the data needed due to a cache line miss.
In some limited cases, setting this option from the Default may improve performance. In the majority of cases, the default setting provides better performance. Users should modify this option after performing application benchmarking to verify improved performance in their environment.
Hardware Prefetch:
This BIOS option allows allows the enabling/disabling of a processor mechanism to prefetch data into the cache according to a pattern recognition algorithm.
In some limited cases, setting this option to Disabled may improve performance. In the majority of cases, the option set to Enabled provides better performance. Users should only disable this option after performing application benchmarking to verify improved performance in their environment.
Hyper-Threading Technology
This BIOS setting disables/enables Hyper-Threading (HT) Technology. HT enables the processor to allocate an additional thread to a core.
Memory Node Interleaving
This BIOS setting when set to NUMA (Non-Uniform Memory Access) configures the system memory into blocks local to each processor. A NUMA-aware operating system can use this configuration to intelligently allocate memory for optimal performance.
Flag description origin markings:
For questions about the meanings of these flags, please contact the tester.
For other inquiries, please contact webmaster@spec.org
Copyright 2006-2014 Standard Performance Evaluation Corporation
Tested with SPEC CPU2006 v1.1.
Report generated on Wed Jul 23 02:53:42 2014 by SPEC CPU2006 flags formatter v6906.