Parallelising nmake
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
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.
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.
Even with GNU make, running in parallel requires a lot of care for any serious build chain.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement