mp

Maintains floating-point precision while disabling some optimizations.

IDE Equivalent

Linux: Floating Point > Improve Floating-point Consistency

Architectures

IA-32, IntelŪ EM64T, IntelŪ ItaniumŪ architecture

Syntax

Linux: -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.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.

Alternate Options

Linux: -mieee-fp
Windows: None

See Also

mp1, Qprec compiler option