New Options

The following table lists the options that provide new functionality in this release.

Some compiler options are only available on certain systems, as indicated by these labels:

Label

Meaning

i32

The option is available on IA-32-based systems.

i32em

The option is available on IA-32-based systems with IntelŪ Extended Memory 64 Technology (IntelŪ EM64T).

i64

The option is available on ItaniumŪ-based systems.

If no label appears, the option is available on all supported systems.

If "only" appears in the label, the option is only available on the identified system.

For more details on the options, refer to the Alphabetical Compiler Options section.

For information on conventions used in this table, see Notation Conventions.

Windows* Options

Description

Default

/fp:double

Enables intermediates in 64-bit precision.

OFF

/fp:except[-]

Enables or disable floating-point semantics.

OFF

/fp:extended

Enables intermediates in 80-bit precision.

OFF

/fp:fast

Allows value-unsafe optimizations.

OFF

/fp:precise

Allows value-safe optimizations only.

OFF

/fp:source

Enables intermediates in source precision.

OFF

/fp:strict

Enables /fp:precise and /fp:except as well as sensitivity to the FPU environment. Disables floating-point multiply add (FMA).

OFF

/Qglobal-hoist[-]

Determines whether certain optimizations are enabled that can move memory loads to a point earlier in the  program execution than where they appear in the source.

/Qglobal-hoist-

/Qlong-double
(i32, i32em)

This option is now available on IntelŪ EM64T processors.

OFF

/Qmap-opts

Converts one or more Windows* compiler options to their equivalent on a Linux* system.

OFF

/Qmultibyte-chars[-]

Provides support for multi-byte characters.

ON

/Qprec-sqrt[-]
(i32, i32em)

Determines whether certain optimizations are enabled that improve precision of square root implementations.

OFF

/Qprof-gen-sampling

Prepares application executables for hardware profiling (sampling) and causes the compiler to generate source code mapping information.

OFF

/Qssp
(i32 only)

Enables the software-based speculative pre-computation (SSP) optimization to generate prefetching helper threads.

OFF

/Qtrapuv

Initializes local variables to Not a Number (NaN).

OFF

/RTCc

Causes a diagnostic to be reported whenever a value is assigned to a smaller data type, resulting in a loss of data.

OFF

/RTCs
(i32 only)

Enables stack frame run-time error checking compatible with Microsoft* C.

OFF

/RTCu

Causes checking to occur for uninitialized variables.

OFF

Linux* Options

Description

Default

-Bdir

Specifies a directory that can be used to find include files, libraries, and executables.

OFF

-debug [no-]expr-source-pos

Determines whether the compiler provides source position information at the expression level of granularity.

-debug expr-source-pos

-ffunction-sections

Places each function in its own comdat section.

OFF

-f[no-]math-errno

Tells the compiler whether errno can be reliably tested after calls to standard math library functions.

OFF

-fno-builtin

Equivalent to -nolib_inline (a deprecated option).

OFF

-f[no-]exceptions

Enables or disables exception handling table generation.

OFF

-f[no-]gnu-keywords

Disables GNU keywords.

 

OFF

-fno-operator-names

Disables support for the operator names specified in the standard.

OFF

-f[no-]omit-frame-pointer
(i32, i32em)

Determines whether the compiler should use the frame pointer. -fno-omit-frame-pointer is a synonym for -fp.

-fomit-frame-pointer

-fpack-struct

Specifies that structure members should be packed together.

 

-fp-model double  

Enables intermediates in 64-bit precision.

OFF

-fp-model [no-]except

Enables or disable floating-point semantics.

OFF

-fp-model extended

Enables intermediates in 80-bit precision.

OFF

-fp-model fast

Allows value-unsafe optimizations.

OFF

-fp-model precise

Allows value-safe optimizations only.

OFF

-fp-model source

Enables intermediates in source precision.

OFF

-fp-model strict

Enables -fp-model precise and -fp-model except as well as sensitivity to the FPU environment. Disables floating-point multiply add (FMA).

OFF

-ftemplate-depth-<val>

Controls the depth to which recursive templates are expanded.

OFF

-ftrapuv

Initializes local variables to Not a Number (NaN).

OFF

-funroll-loops

Tells the compiler to unroll user loops based on the default optimization heuristics. Synonym for -unroll.

OFF

-[no-]global-hoist

Determines whether certain optimizations are enabled that can move memory loads to a point earlier in the  program execution than where they appear in the source.

-no-global-hoist

-imacros

Allows a header to be specified that is included in front of the other headers in the translation unit; used in the Linux kernel build.

OFF

-iprefix <prefix>, -iwithprefix <dir>, -iwithprefixbefore <dir>

Options for indicating the prefix for referencing directories containing header files.

OFF

-i-static

Links Intel-provided libraries statically.

OFF

-malign-double
(i32 only)

Aligns double, long double, and long long objects for better performance on IA-32 systems.

OFF

-map-opts

Maps one or more Linux* compiler options to their equivalent on a Windows* system.

OFF

-mfixed-range=f12-f15,f32-f127

Reserves certain registers (f12-f15, f32-f127) for use by the Linux*

kernel.

OFF

-m[no-]ieee-fp

Determines whether the compiler uses IEEE floating point comparisons. -mieee-fp is a synonym for -mp.

OFF

-mtune=keyword

Performs optimizations for a particular CPU.

i32: -mtune pentium4

i64:-mtune itanium2

-[no-]multibyte-chars

Provides support for multi-byte characters.

ON

-[no-]prec-sqrt
(i32, i32em)

Determines whether certain optimizations are enabled that improve precision of square root implementations.

OFF

-print-multi-lib

Prints information about where system libraries should be found. It is provided for compatibility with gcc.

OFF

-prof-gen-sampling

Prepares application executables for hardware profiling (sampling) and causes the compiler to generate source code mapping information.

OFF

-ssp
(i32 only)

Enables the software-based speculative pre-computation (SSP) optimization to generate prefetching helper threads.

OFF

--version

Outputs version information.

OFF

-W[no-]abi

Determines whether tail-padding warnings are displayed.

ON

-Wa,option1[,option2,...]

Passes options to the assembler for processing.

OFF

-Wcontext-limit=<n>

Sets maximum number of template instantiation contexts shown in diagnostic.

OFF

-W[no-]deprecated

Enables or disables warnings related to deprecated features (places -U_DEPRECATED on the compiler command line)

OFF

-Winline

Provides diagnostics about what is and is not inlined (depends on what IP functionality is available).

OFF

-W[no-]comment[s]

Warns when /* appears in the middle of a /* */ comment.

OFF

-W[no-]main

Warns if return type of main is not expected.

OFF

-W[no-]missing-prototypes

Enables or disables warnings for missing prototypes.

OFF

-W[no-]pointer-arith

Enables or disables warnings for questionable pointer arithmetic.

OFF

-W[no-]return-type

Warns when a function uses the default int return type and warns when a return statement is used in a void function.

OFF

-W[no-]shadow

Enables or disables warnings for variable declarations that hide a previous declaration.

OFF

-W[no-]uninitialized

Equivalent to -ww592 and -wd592.

OFF

-W[no-]unknown-pragmas

Warns if an unknown #pragma directive is used (DEFAULT).

ON

-W[no-]unused-function

Warns if declared function is not used.

OFF