码迷,mamicode.com
首页 > 其他好文 > 详细

提高VS2010/VS2012编译速度

时间:2015-07-06 12:12:42      阅读:123      评论:0      收藏:0      [点我收藏+]

标签:

除了合理的划分模块,减少link的时间外,充分利用多核编译也很重要。

VS2010/2012都可以用多核编译,需要同时设置如下两个参数:

Enable Minimal Rebuild  

Properties -> Configuration Properties -> C/C++ -> Code Generation -> Enable Minimal Rebuild -> No(/Gm-)

默认情况下该参数在Debug模式下为Yes,而在Release下为No。

Multi-processor Compilation 

Properties -> Configuration Properties -> C/C++ -> Geneal -> Multi-processor Compilation -> Yes(/MP)

默认情况下Debug/Release均未设置。

在全局参数中可以设置最大并行project的数目。默认情况下该参数有系统的“核”数决定。如i7 CPU默认为8。

Options->Projects and Solutions->Build and Run:

8 maximum number of parallel project builds.

提高VS2010/VS2012编译速度

标签:

原文地址:http://www.cnblogs.com/lvdongjie/p/4623804.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!