zoukankan      html  css  js  c++  java
  • [转]Improving link time with IncrediBuild,减少联合编译器的链接是时间

    http://blog.csdn.net/yacper/article/details/4791092

    重点:

    不要用/LTCG

    将debug信息设为/z7

    IncrediBuild may, in some cases, take longer than Visual Studio to execute the link phase. This is related to the fact that IncrediBuild generates multiple PDB and IDB files when building (one for each concurrent Agent), while Visual Studio only generates one of each of these files.
    If you are using Visual Studio .NET or 2005, try enabling IncrediLink (Agent Settings dialog, Build System page) to speed up incremental links. Read the product documentation for some considerations that need to be taken when using this mode.
    The following suggestions may also help improve link speed:


    1. Try to minimize use of the /LTCG linker option in local builds, since this option moves a significant portion of the build processing from the compilation phase to the linking phase, significantly impacting IncrediBuild's performance improvement.

    尽量不用LTCG,一般情况下inrementalbuild

    2. If the max. number of Agents allowed to participate in a build exceeds 12, decrease this option and then rebuild the project (this setting can be found in the Coordinator Settings dialog, Agent Assignment page).

    agents设为12以下,物极必反,协调也需要cpu时间

    3. If you are running a "live" anti-virus scanner (or any other file-scanning software), disable its operation on the project's intermediate and output folder or on typical intermediate file extensions (*.pdb, *.obj, *.idb, *.sbr, *.pch).

    关掉杀毒软件的查询

    4. If your typical build operation builds multiple projects in parallel, consider using the "Limit concurrent PDB instances" option (Agent Settings dialog, "Visual Studio Builds|Advanced" page). This will decrease the number of PDB files, speeding up builds, but will also limit the number of concurrent files from the same project configurationthat IncrediBuild will build at any single time.

    这个不实用。


    5. Make sure you are running the latest version of IncrediBuild.


    6. Periodically rebuilding the project (even nightly) can reduce PDB fragmentation and help improve subsequent link times.

    定时重编project,减少pdb的碎片。

    7. Changing the debug information format to /Z7 can also help improve link times.

    将debug信息设成z7,显然使用这个功能,就不能编辑并继续了,当然,这对于vc2005来说是无所谓的,因为05的c++就没这功能,哈哈

  • 相关阅读:
    flex布局下,将内容限定在容器内(如内容超出以省略号显示)的实现方案
    模板引擎——jquery.tmpl.js
    CSS布局——display: flex
    js实现实时显示当前时间的方法
    PS——规定尺寸的证件照的制作
    辅助开发——ps一键切图篇
    TCP的三次握手和四次挥手
    HTTP 协议基础入门篇总结
    频率组件
    视图组件
  • 原文地址:https://www.cnblogs.com/pulas/p/2454055.html
Copyright © 2011-2022 走看看