Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Can a single compilation process be distributed onto multiple processors? More generally, does a multiprocessor (MP) system always have better compile-time performance?

0
Posted

Can a single compilation process be distributed onto multiple processors? More generally, does a multiprocessor (MP) system always have better compile-time performance?

0

The compiler itself is not multithreaded. You can expect better performance with MP systems, because the computer always has many other processes running at the same time as any one compilation. If you use dmake (one of the tools that ships with the compiler), you can run multiple compilations simultaneously. If the simultaneous compilations require use of the template cache, contention for access to the cache can be a bottleneck. You should investigate options for avoiding the cache, such as the options described in 4c of this FAQ. For more information, see the “Compiling Templates” chapter in the C++ User’s Guide that ships with the compiler. This guide is available online at http://docs.sun.com.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123