Sign in to follow this  
osiris_dev

Visual Studio "Generating Code" infinitely

Recommended Posts

osiris_dev    289
There was a problem with linking code in release mode. To be more precise after compiling begins "Generating Code" but never ending. I made a couple of tests and found that the reason connect with "Maximaze Speed" flag in C++ Optimization.

I have other projects for VS2010 SP1 but they have not problems.

Any ideas?

Share this post


Link to post
Share on other sites
Misery    354
Well, I have found a several bugs in VS2010 Ultimate as well. For example when there was access violation due to accessing reference that didn't exist in C++, debugger hangs. I think that using VS2008 or reporting bugs and waiting for patches is a solution really. [img]http://public.gamedev.net//public/style_emoticons/default/blink.png[/img]

Share this post


Link to post
Share on other sites
Cygon    1219
I have compiled tons of libraries (including some big ones like Ogre 3D that took up gigabytes of disk space for temporary build files) but never encountered this.

If you have enabled LTCG (Whole Program Optimization), the compiler will not actually compile your sources, but write the preprocessing results into the .obj files. When the linker prints "Generating Code", it will combine all of the sources into one huge source file and compile that. I know that on a lower-end system I had to wait several minutes for this step to complete.

Share this post


Link to post
Share on other sites
osiris_dev    289
[quote name='Cygon' timestamp='1340793834' post='4953273']
If you have enabled LTCG (Whole Program Optimization), the compiler will not actually compile your sources, but write the preprocessing results into the .obj files. When the linker prints "Generating Code", it will combine all of the sources into one huge source file and compile that. I know that on a lower-end system I had to wait several minutes for this step to complete.
[/quote]

Yes, I have enabled LTCG. Now I removed some codes and generating finished. Last time i waited 30 minutes but i don't saw result. This time it took 1 min. So, i don't know how I can boost generation time.

Share this post


Link to post
Share on other sites

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