Recommendations to speed C++ builds in Visual Studio
-
Visual C++[^]:
In this blog, I will discuss features, techniques and tools you can use to reduce build time for C++ projects.
Buy a new machine?
-
Visual C++[^]:
In this blog, I will discuss features, techniques and tools you can use to reduce build time for C++ projects.
Buy a new machine?
Get a faster compiler.
#SupportHeForShe Government can give you nothing but what it takes from somebody else. A government big enough to give you everything you want is big enough to take everything you've got, including your freedom.-Ezra Taft Benson You must accept 1 of 2 basic premises: Either we are alone in the universe or we are not alone. Either way, the implications are staggering!-Wernher von Braun
-
Visual C++[^]:
In this blog, I will discuss features, techniques and tools you can use to reduce build time for C++ projects.
Buy a new machine?
#1 don't include the whole world in every .cpp #2 use precompiled headers #3 use incremental linking what's more than that?
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
-
#1 don't include the whole world in every .cpp #2 use precompiled headers #3 use incremental linking what's more than that?
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
den2k88 wrote:
#1 don't include the whole world in every .cpp
Sure? Then where should I put the "hello world", or should I write "hello wo_ld" so that it is not complete? :rolleyes: :rolleyes: :rolleyes: :rolleyes: I'll go get my coat
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
-
den2k88 wrote:
#1 don't include the whole world in every .cpp
Sure? Then where should I put the "hello world", or should I write "hello wo_ld" so that it is not complete? :rolleyes: :rolleyes: :rolleyes: :rolleyes: I'll go get my coat
M.D.V. ;) If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you Rating helpful answers is nice, but saying thanks can be even nicer.
print "hello worl" then print "d". Duh.
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
-
#1 don't include the whole world in every .cpp #2 use precompiled headers #3 use incremental linking what's more than that?
DURA LEX, SED LEX GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- ++>+++ y+++* Weapons extension: ma- k++ F+2 X If you think 'goto' is evil, try writing an Assembly program without JMP. -- TNCaver When I was six, there were no ones and zeroes - only zeroes. And not all of them worked. -- Ravi Bhavnani
-
Visual C++[^]:
In this blog, I will discuss features, techniques and tools you can use to reduce build time for C++ projects.
Buy a new machine?
Use an SSD. In the past I found that /incremental caused problems and relatively little improvement on overall build time. Properly done precompiled headers and the /MP switch have been the real boosts.