vs2013 Improve compilation speed

Source: Internet
Author: User

Recently done new projects, many libraries are the libraries that have been accumulated from previous projects. The IDE used under Windows is vs2013, the overall compile time, obviously feel the compilation speed is slow, the file is a one-part.

From the point of view of the compiler itself, VS2013 provides a way to speed up the compilation:

We can compile it in C + +, general-, and multi-processor , so that it launches multi-processor simultaneous compilation, but this /mp feature and/gm (minimum build) in code generation are conflicting and want to enable/MP, You have to turn the/gm off. The same project, with the/MP turned on and the/gm turned off, the compilation speed is significantly increased, and if you look at CPU usage, you'll see a spike in all CPU usage.

If you use make compile under Linux, you can add-j to make, which maximizes the efficiency of CPU cores and speeds up compilation.

vs2013 Improve compilation speed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.