Community
cancel
Showing results for 
Search instead for 
Did you mean: 
SKost
Valued Contributor II
45 Views

There are no details on arguments for #pragma float_control directive in Intel C++ Compiler User and Reference Guides

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

 

0 Kudos
6 Replies
Melanie_B_Intel
Employee
45 Views

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

SKost
Valued Contributor II
45 Views

>>...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?
JenniferJ
Moderator
45 Views

Sergey,

the /Qhelp_pragma works. try "icl /c /Qhelp-pragma test.c

Make sure "test.c" exists.

Jennifer

SKost
Valued Contributor II
45 Views

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' ...
jimdempseyatthecove
Black Belt
45 Views

It is "/Qhelp-pragma" not "/Qhelp_pragma"

"minus" not "underbar"

Jim Dempsey

SKost
Valued Contributor II
45 Views

>>...It is "/Qhelp-pragma" not "/Qhelp_pragma" Thanks, Jim. Somehow I misused it...