Intel® C++ Compiler
Community support and assistance for creating C++ code that runs on platforms based on Intel® processors.

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

SergeyKostrov
Valued Contributor II
307 Views

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

0 Kudos
SergeyKostrov
Valued Contributor II
307 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?
0 Kudos
JenniferJ
Moderator
307 Views

Sergey,

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

Make sure "test.c" exists.

Jennifer

0 Kudos
SergeyKostrov
Valued Contributor II
307 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' ...
0 Kudos
jimdempseyatthecove
Honored Contributor III
307 Views

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

"minus" not "underbar"

Jim Dempsey

0 Kudos
SergeyKostrov
Valued Contributor II
307 Views
>>...It is "/Qhelp-pragma" not "/Qhelp_pragma" Thanks, Jim. Somehow I misused it...
0 Kudos
Reply