Threading the compiler

Geert Bosch bosch@adacore.com
Tue Nov 14 18:29:00 GMT 2006


On Nov 14, 2006, at 12:49, Bill Wendling wrote:
> I'll mention a case where compilation was wickedly slow even
> when using -j#. At The MathWorks, the system could take >45 minutes
> to compile. (This was partially due to the fact that the files were
> located on an NFS mounted drive. But also because C++ compilation
> is way slower than C compilation.) Experiments with distributed
> make showed promise.

When using -j#, with enough parellel processes and assuming  
sufficient memory,
you should be able to reach the point where you're either limited
by the NFS server or by CPU availability. No amount of threading in the
compiler will remove either bottleneck.

   -Geert



More information about the Gcc mailing list