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++就没这功能,哈哈

  • 相关阅读:
    bzoj 2878: [Noi2012]迷失游乐园
    端口安全检查shell脚本
    Linux安全基线检查脚本
    kali修改时区
    Elasticsearch+Kibana+Logstash安装
    go基础语法
    windows server 2012泛域名解析配置
    域名解析知识总结
    DDOS防护原理
    kali 2.0下搭建DVWA环境
  • 原文地址:https://www.cnblogs.com/pulas/p/2454055.html
Copyright © 2011-2022 走看看