提高VS2010/VS2012编译速度

淩亂°似流年 2023-10-12 01:23 92阅读 0赞

转 https://blog.csdn.net/liaowenfeng/article/details/75464657

http://blog.csdn.net/mythma/article/details/9275513

除了合理的划分模块,减少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.

jpg 改 rar 923483-20180910181449886-1148657041.jpg

转载于:https://www.cnblogs.com/kuangke/p/9621607.html

发表评论

表情:
评论列表 (有 0 条评论,92人围观)

还没有评论,来说两句吧...

相关阅读