Can a single compilation process be distributed onto multiple processors? More generally, does a multiprocessor (MP) system always have better compile-time performance?
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
- Can a single compilation process be distributed onto multiple processors? More generally, does a multiprocessor (MP) system always have better compile-time performance?
- Can IncrediBuild slow down other users machines in my organization as a result of the distributed compilation process?
- What is the difference between a Distributed Control System (DCS) and a Process Knowledge System (PKS)?