Home Dashboard Directory Help
Search

Optimization key (/O2) is not applied by Dmitriy Ovdienko


Status: 

Closed
 as Fixed Help for as Fixed


6
0
Sign in
to vote
Type: Bug
ID: 389232
Opened: 12/22/2008 4:33:33 AM
Access Restriction: Public
0
Workaround(s)
view
3
User(s) can reproduce this bug

Description

Optimization key (/O2) is not applied unless user explicitly change Optimization property of C++ project to the "Maximum speed (O2)".
Details
Sign in to post a comment.
Posted by Microsoft on 3/9/2009 at 6:58 PM
Hi -

We verified that with our current builds of VS 2010, we correctly pass the /O2 switch to the compiler! Thanks for the bug report!

Thanks,
-- Izzy

Izzy Gryko
Lead Software Design Engineer
Microsoft Visual Studio Platform Development
izzyg@microsoft.com
Posted by Microsoft on 3/4/2009 at 6:55 PM
Hi Dima,

Thank you for the attachment and for the clarification. I didn't notice your comment about the fact that the IDE shows you incorrectly /O2 in the property pages.
I reactivated the bug and we're investigating a fix for the next release.

Note that my previous suggestion of setting /O2 manually still stands as a workaround for this bug.

Thanks,
Marian Luparu
Visual C++ IDE
Posted by Dmitriy Ovdienko on 1/29/2009 at 3:27 PM
If application is inconvenient, you have change design. User is target, application is not target.
Posted by Dmitriy Ovdienko on 1/11/2009 at 8:51 AM
Marian,

Please check files attached.

Regards,
Dima
Posted by Dmitriy Ovdienko on 1/10/2009 at 12:32 PM
Marian,

Please read the description carefully and check solution attached. Maximum speed /O2 is selected on the C/C++ Compiler > Optimization page. But it is not applied.

I will provide you with a screenshot tomorrow.

Regards,
Dima
Posted by Microsoft on 1/10/2009 at 1:42 AM
Hello,

This is expected as long as the optimization property is not set for the Release configuration. To solve this:
- right click on the project and select Properties
- in the Property Pages window, ensure that Configuration = Release
- go to C/C++ Compiler > Optimization page
- set Optimization = Maximize Speed (/O2).

Hope this helps.
Marian Luparu
Visual C++ IDE
Posted by Microsoft on 12/22/2008 at 6:22 PM
Thanks for your feedback.

We are escalating this issue to the appropriate group within the Visual Studio Product Team for triage and resolution. These specialized experts will follow-up with your issue.

Thank you,
Visual Studio Product Team
Sign in to post a workaround.