What a difference a compiler makes

posted in I am a duck
Published April 20, 2006
Advertisement
I've been developing using Visual Studio .NET 2003 Standard since the 2003 version came out. The way I figured it everything I needed in a development platform was in the Standard version so I just went with that. Ends up the C++ compiler in the standard version doesn't do any optimizations so your debug code runs exactly the same speed as your release code. Ok for development but not so good for a final released product.

A couple months ago I finally got a copy of the Pro version for the end game of my current project. I haven't gotten around to installing it until tonight because I didn't think the perf gains would be any crazy. That's where I was wrong. The perf gains are more noticeable than I thought would happen. All in all I got around a 50% perf improvement on my development machine. This may not be normal and maybe I just write sloppy code that the compiler can optmize. Either way I just solved some of my perf issues by installing a new compiler. :)
Previous Entry Kind Words
0 likes 4 comments

Comments

HopeDagger
50%? Holy sugercubes. I may have to start saving up. [smile]
April 20, 2006 11:31 PM
MikeWW
The professional version of the compiler is available from Microsoft via a separate download here for free. Once you have downloaded and installed it you can copy the compiler exe and other required files over the files installed by the Standard version of VC2003 to get the optimising compiler to be used by the IDE. The only downside to this is that you have to specify the compiler optimisation flags yourself (in the Project->Properties dialog) as the Standard version disables controls to do this via the Project Properties dialog.

There is a page out there somewhere that documents exactly which files you should copy but I seem to have lost the bookmark...

I realise this is a bit too late for you! (And maybe you needed other features not present in the Standard edition).
April 21, 2006 03:55 AM
Nit
I finally got around to installing the VS.Net2003 Standard compiler upgrade about a week ago. I've seen some improvement, certainly not 50%. For those curious, the upgrade can be found here:

http://msdn.microsoft.com/visualc/vctoolkit2003/
April 21, 2006 08:02 AM
jollyjeffers
It's much more hit-and-miss, but the "Profile Guided Optimizations" in VC8 have done wonders for my larger projects. One section almost quadrupled in speed [oh]

Jack
April 21, 2006 09:31 AM
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Advertisement
Advertisement