Jump to content
  • Advertisement
Sign in to follow this  
spraff

Parallelising nmake

This topic is 3491 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Using GNU make you can pass "-j2" as a command-line argument to make it process two jobs at once and exploit my dual-core. I can't find any comparable option for Microsoft's nmake. I can't believe it's missing, so I must be blind/dumb. Can someone point it out please? Thanks

Share this post


Link to post
Share on other sites
Advertisement
There's a checkbox in more recent versions of MS Visual C++ to use multiple processors for building, but I don't know what the command line option is.

Share this post


Link to post
Share on other sites
Be aware that there are subtle issues with running make files in parallel. There are some operations that need to by synchronized, such as ensuring a directory is created before writing files, ensuring that the dependencies are build prior to being used, and so on.

Even with GNU make, running in parallel requires a lot of care for any serious build chain.

Share this post


Link to post
Share on other sites
Newer versions of the MSVC compiler can use multiple threads. This may be as effective as trying to parallelize nmake. I agree with frob that it's very difficult indeed to write a makefile (or set of makefiles) that will correctly build your software with concurrent processes.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!