- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What is the difference between compiler options /fp and /qfp-speculation?
Should one use both?
Linda
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
/Qfp-speculation controls the "speculation" optimization where operations are executed earlier in the program than the code calls for even if the code might conditionally not do the operation. This optimization can take advantage of conditional-move instructions and, on Itanium systems, a major architectural feature, to increase speed. The compiler assumes that the operation will not cause an exception. Using the switch can control this.
/fp controls how floating point operations are done with an eye to the result. Some optimizations (reassociation, reduction, etc.) can change FP results somewhat, and other optimizations can't be used if you read or modify the FP control state.
These switches are independent.
/fp controls how floating point operations are done with an eye to the result. Some optimizations (reassociation, reduction, etc.) can change FP results somewhat, and other optimizations can't be used if you read or modify the FP control state.
These switches are independent.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page