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. General Programming
  3. C / C++ / MFC
  4. How reduce build time of the project?

How reduce build time of the project?

Scheduled Pinned Locked Moved C / C++ / MFC
visual-studioquestion
5 Posts 5 Posters 0 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.
  • G Offline
    G Offline
    ganesh dp
    wrote on last edited by
    #1

    IDE : vc 6.0 I want reduce my project build time, project is quite big one. Is there any way?

    S M A A 4 Replies Last reply
    0
    • G ganesh dp

      IDE : vc 6.0 I want reduce my project build time, project is quite big one. Is there any way?

      S Offline
      S Offline
      Sauro Viti
      wrote on last edited by
      #2

      You can use precompiled headers (however this option is enabled by default). After that, move all the includes to files that doesn't change frequently (e.g. windows.h, math.h and so on) into the header file used to build the precompiled header (usually stdafx.h).

      1 Reply Last reply
      0
      • G ganesh dp

        IDE : vc 6.0 I want reduce my project build time, project is quite big one. Is there any way?

        M Offline
        M Offline
        Maximilien
        wrote on last edited by
        #3

        ganesh.dp wrote:

        project is quite big one.

        What is big ? Check for superfluous #include directives, check for badly coupled files (again, #include) dependencies. If all looks ok, then check to see if you need to rebuild everything everytime. (are there some libraries/dll than can be build once in while ? instead of everytime ?) If all else fails, have a look at distributed build system (xoreax[^] comes to mind, and it still support VC6). M.

        Watched code never compiles.

        1 Reply Last reply
        0
        • G ganesh dp

          IDE : vc 6.0 I want reduce my project build time, project is quite big one. Is there any way?

          A Offline
          A Offline
          Abhi Lahare
          wrote on last edited by
          #4

          If the code resides on network drive, its take a huge time

          1 Reply Last reply
          0
          • G ganesh dp

            IDE : vc 6.0 I want reduce my project build time, project is quite big one. Is there any way?

            A Offline
            A Offline
            Aescleal
            wrote on last edited by
            #5

            There's loads of ways to speed up build time by writing your source code to build fast: - The main one is reduce dependencies between compilation units. Don't include things that you can get away with forward declaring and don't do daft things like have single include files with global lists of error codes - Use interfaces and parameterise from above (PFA) to decouple class implementations from each other - Use PIMPLs to hide implementation details of classes. Don't use protected or private member functions in your base classes - Use DLLs and libraries to help you reduce dependencies and DLLs to reduce link time - (Controversial) Don't use precompiled headers, or if you must only include stuff that's not going to change (standard library headers, third party library headers e.g. boost headers, windows headers). Hiding OS interfaces under portable ones will help speed up your builds as using portable interfaces don't require dragging in loads of OS headers Generally if you're talking less than a second on average to compile each source file and less than 10 seconds for a link there's probably not a lot of reason to try and speed things up more. Another option would be to invest in a newer compiler - VC++2010 has loads of advantages for building over VC6 even if you don't care about the other things like standards compliance and C++0x features. Have a look in "Exceptional C++" by Herb Sutter and "Large Scale C++ Design" by John Lakos for more ideas along these lines. Cheers, Ash

            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