mp

Maintains floating-point precision while disabling some optimizations. This is a deprecated option.

IDE Equivalent

Windows: None

Linux: Floating Point > Improve Floating-point Consistency

Mac OS X: Floating Point > Improve Floating-point Consistency

Architectures

IA-32, Intel® 64 architectures

Syntax

Linux and Mac OS X:

-mp

Windows:

None

Arguments

None

Default

OFF

The compiler provides good accuracy and run-time performance at the expense of less consistent floating-point results.

Description

This option maintains floating-point precision while disabling some optimizations, such as -fma (Linux) and /Qfma (Windows). It restricts optimization to maintain declared precision and to ensure that floating-point arithmetic conforms more closely to the ANSI* language and IEEE* arithmetic standards.

For most programs, specifying this option adversely affects performance. If you are not sure whether your application needs this option, try compiling and running your program both with and without it to evaluate the effects on both performance and precision.

The recommended method to control the semantics of floating-point calculations is to use option -fp-model.

Note iconNote

This option may enable extra optimization that only applies to Intel® microprocessors.

Alternate Options

None

See Also


Submit feedback on this help topic

Copyright © 1996-2011, Intel Corporation. All rights reserved.