Sign in to follow this  

Viewing compiler optimizations

This topic is 3113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'd like to see the code a compiler generates when I compile a program. I know there is a way to do it, I just can find any info on it. Help? :) Additionally, where can I choose which optimizations are made when I build?

Share this post


Link to post
Share on other sites
You can get MSVC to output the assembly it generates with the /FA family of switches. Optimizations can be controlled by going to Project Properties -> C/C++ -> Optimization.

Share this post


Link to post
Share on other sites
Quote:
Original post by SiCrane
You can get MSVC to output the assembly it generates with the /FA family of switches. Optimizations can be controlled by going to Project Properties -> C/C++ -> Optimization.


I just put a breakpoint in the code I'm interested in and hit alt-8.

Share this post


Link to post
Share on other sites

This topic is 3113 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this