博客
关于我
VS加快程序编译速度——以VS2013为例
阅读量:542 次
发布时间:2019-03-09

本文共 423 字,大约阅读时间需要 1 分钟。

前言

由于当前项目包含了大量的大型.cpp文件,导致编译速度较慢。经过亲测,本文将一种“多处理器加速”方法分享给大家。该方法可以将编译速度提升至少一倍以上,同时不会对最终生成的.exe文件造成任何影响。

方法介绍

第一步:项目属性 > 配置属性 > C/C++ > 代码生成 > 启用最小重新生成:改为“否”

第二步:分debug模式和release模式,注意两者不同

  • debug模式下:项目属性 > 配置属性 > 链接器 > 常规 > 启用增量链接:改为“是”
  • release模式下:项目属性 > 配置属性 > 链接器 > 常规 > 启用增量链接:改为“否”

第三步:启用多核处理器编译:项目属性 > 配置属性 > C/C++ > 常规 > 多核处理器编译:改为“是,/MP”

第四步:选择调试信息格式为“程序数据库(/Zi)”或“编辑并继续的”程序数据库(/ZI)

附录

1、vs2013编译加速方法汇总
2、加速bug解决方法
3、模式选择

转载地址:http://nnzsz.baihongyu.com/

你可能感兴趣的文章
No 'Access-Control-Allow-Origin' header is present on the requested resource.
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
查看>>
Node JS: < 一> 初识Node JS
查看>>
Node-RED中使用JSON数据建立web网站
查看>>
Node-RED中使用node-red-browser-utils节点实现选择Windows操作系统中的文件并实现图片预览
查看>>
Node-RED中使用Notification元件显示警告讯息框(温度过高提示)
查看>>
Node-RED中实现HTML表单提交和获取提交的内容
查看>>
Node.js 实现类似于.php,.jsp的服务器页面技术,自动路由
查看>>