Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
28595 Discussions

Programmatically checking compiler switches.

gfthomas8
Novice
347 Views
Is it possible to programmatically check compiler switches? For example, to see if /assume:minus0 is set, is invoking sign flipping with the SIGN intrinsic the only way to do it? I guess there is no way to change it on the fly.

TIA,
Gerry T.
0 Kudos
2 Replies
Steven_L_Intel1
Employee
347 Views
There's nothing in the executable you can query directly.

Steve
0 Kudos
gfthomas8
Novice
347 Views
OK.
But why, if /assume:minus0 on an Intel processor, does
sign(0.d0, -0.d0) = sign(-0.d0, -0.d0) (= 0.d0)? I would expect the two to differ by a sign or is an identically zero argument special?

Thanks,
Gerry T.
0 Kudos
Reply