Parallel compilation

Oh, man. I can't believe this has been right under my nose the whole time. VC++ 2008 actually has parallel compilation. Just add /MPn, n being how many translation units you want to compile at once, to the command line and watch the output fly by.
Linking is still done in a single thread, but it's a great improvement regardless if you have a project with a lot of files.
THANK YOU FOR FINDING THIS!

Seriously, I've been working with a 50-file project for a few months now, and I've been getting sick of waiting 3 minutes for the stupid thing to compile.
I'm glad it was useful.
Microsoft ought to put a little more effort into advertising this type of things, not worthless features like interface changes. It's things like this -- small things -- that really improve productivity.
They also need a new set of debuggers for debugging their Intellisense, but that's a different thread.

This could have saved me a lot of time indeed before I switched to Mac OS X... geez... Microsoft seriously lost a lot of its grip ever since they released Vista.

-Albatross
Last edited on
For those with multiple computers on a network using gcc you may want to look at distcc

http://distcc.samba.org/

You can use it to compile your project using all the computers on the network.
Topic archived. No new replies allowed.