下面信息均摘自MSND文档,仅为浏览:

How Can I Build Faster?

This topic contains tips for reducing the amount of time it takes to build a project.

  • Reduce the number of header files Visual C++ must include and check for every build.

  • Use precompiled headers. See /Y (Precompiled Headers) for more information.

  • When calling cl.exe directly, do not invoke the compiler once for every source file; pass all source files to cl.exe in the same invocation to create .obj files.

  • Use minimal rebuild; see /Gm for more information.

  • Use incremental linking; see /INCREMENTAL for more information.

  • Use #pragma once, when appropriate. For example, if your headers use include guards.

  • Dynamically link to the CRT; see /MD for more information.

posted on 2010-08-10 19:46  yidao  阅读(214)  评论(0编辑  收藏  举报