Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Insider News
  4. Recommendations to speed C++ builds in Visual Studio

Recommendations to speed C++ builds in Visual Studio

Scheduled Pinned Locked Moved The Insider News
c++csharpvisual-studiocomtools
7 Posts 6 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    Kent Sharkey
    wrote on last edited by
    #1

    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?

    T D J 3 Replies Last reply
    0
    • K Kent Sharkey

      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?

      T Offline
      T Offline
      TheGreatAndPowerfulOz
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • K Kent Sharkey

        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?

        D Offline
        D Offline
        den2k88
        wrote on last edited by
        #3

        #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

        N E 2 Replies Last reply
        0
        • D den2k88

          #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

          N Offline
          N Offline
          Nelek
          wrote on last edited by
          #4

          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.

          D 1 Reply Last reply
          0
          • N Nelek

            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.

            D Offline
            D Offline
            den2k88
            wrote on last edited by
            #5

            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 Reply Last reply
            0
            • D den2k88

              #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

              E Offline
              E Offline
              ed welch
              wrote on last edited by
              #6

              /MP enables multiprocessor, which is not on by default

              1 Reply Last reply
              0
              • K Kent Sharkey

                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?

                J Offline
                J Offline
                Joe Woodbury
                wrote on last edited by
                #7

                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.

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups