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

Confused about /Og switch in Visual Studio 2008

Henrik_S_
Beginner
454 Views

According to the documentations the default is "Global Optimizations" /Og to be enabled unless /Od is specified. In VS under Properties > Configuration Properties -> Fortran -> Optimization the default setting for Global Optimization is "No" with the option of turning it on "Yes /Og". So what does this setting do since (if the docs are correct), /Og is turned on by default? Furthermore the default "No" in Global Optimization is incorrect or at least misleading since Global Optimizations are turned on by default.

Finally, what does the "/Og" flag do? The Documentation on "/Og" say nothing of interest.

- Henrik

0 Kudos
1 Solution
Steven_L_Intel1
Employee
454 Views

/Og is intended to be equivalent to Microsoft's /Og. It is an old switch and basically controls general optimizations that the compiler would do normally. It is on by default unless optimizations are disabled (/Od).

My advice is to ignore this. Microsoft says it is "deprecated". I am going to recommend that it be removed from the property pages,

View solution in original post

0 Kudos
2 Replies
Steven_L_Intel1
Employee
455 Views

/Og is intended to be equivalent to Microsoft's /Og. It is an old switch and basically controls general optimizations that the compiler would do normally. It is on by default unless optimizations are disabled (/Od).

My advice is to ignore this. Microsoft says it is "deprecated". I am going to recommend that it be removed from the property pages,

0 Kudos
Steven_L_Intel1
Employee
454 Views
This property was removed for 11.1
0 Kudos
Reply