- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are no details on arguments for #pragma float_control directive in Intel C++ Compiler User and Reference Guides:
Page 1721
...
float_control - specifies floating-point behavior for a function
...
Link Copied
6 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Please consult the Microsoft compiler documentation for full details about the Intel supported pragma float_control, e.g. http://msdn.microsoft.com/en-us/library/45ec64h6(v=vs.100).aspx
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>...Please consult the Microsoft compiler documentation for full details about the Intel supported pragma float_control...
Thank you, Melanie and this is exactly what I did. However, wouldn't it better to include some details or a link in Intel docs as well?
Here is another small question. What is wrong with /Qhelp-pragma command line option?
...
/Qhelp-pragma - output supported pragmas and their usage syntax
...
It looks like it doesn't work and could somebody verify it?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Sergey,
the /Qhelp_pragma works. try "icl /c /Qhelp-pragma test.c
Make sure "test.c" exists.
Jennifer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I finally understood how it has to be used. Yes, it works and Thank you for the explanation.
Here is output from my testt:
..\Test>icl.exe /c /Qhelp_pragma Test1.cpp
Intel(R) C++ Compiler XE for applications running on IA-32, Version 12.1.7.371 Build 20120928
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
icl: command line warning #10006: ignoring unknown option '/Qhelp_pragma'
Test1.cpp
Test1.cpp(3): warning #1664: expected "precise", "except", "push", or "pop"
#pragma float_control ( 1 )
^
But, there is a warning message:
...
icl: command line warning #10006: ignoring unknown option '/Qhelp_pragma'
...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is "/Qhelp-pragma" not "/Qhelp_pragma"
"minus" not "underbar"
Jim Dempsey
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
>>...It is "/Qhelp-pragma" not "/Qhelp_pragma"
Thanks, Jim. Somehow I misused it...

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