简体   繁体   中英

Difference between Visual C++ 2008 and 2005

I couldn't find any useful information on Microsoft's site, so here is the question: has the compiler in Visual C++ 2008 been improved significantly since the 2005 version? I'm especially looking for better optimization.

Straight from the horses mouth....

http://msdn.microsoft.com/en-us/library/bb384632.aspx

Somasegar has some notes in this blog post . Mainly about incremental build improvements and multi core improvements .

根据我们的一位资深开发人员的说法,VS2008扩展了对多核编译的支持(我被告知是文件方式而不是项目方式),因此可能会对您的项目进行合理的性能优化。

Have you looked here , here or here ?

If yes, and no information was there you could start by checking first the compiler version (cl.exe) the linker version(link.exe) and then make some performance (optimization tests) and see who is the winner.

Usually a newer version of cl.exe will be better. Not the same thing can be mentioned about the UserInterface of Visual Studio (at least from my experience).

In my experience, compiler optimizations rarely improve more than a few percent between versions at most; if you really need more performance, that few percent just isn't going to cut it--you're going to have to get down and dirty in the code if you want more.

Remember, compilers are extremely dumb, and can usually be outwitted by a smart programmer; the only question is whether its worth your time and effort to do so. If you have a single core function that makes up 90% of your CPU time, it might definitely be so. If runtime is spread equally over ten thousand lines of code, probably not.

Of course, if your speed problem is due to slow algorithms, no compiler can save you.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM