阅读背景:

链接时代码生成的优点和缺点是什么? (VS 2005)

来源:互联网 

I've heard that enabling Link-Time Code Generation (the /LTCG switch) can be a major optimization for large projects with lots of libraries to link together. My team is using it in the Release configuration of our solution, but the long compile-time is a real drag. One change to one file that no other file depends on triggers another 45 seconds of "Generating code...". Release is certainly much faster than Debug, but we might achieve the same speed-up by disabling LTCG and just leaving /O2 on.I've heard that enabling Link-Time Code Generat




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: