Minor suggestion

Simon de Hartog simon@dehartog.nl
Tue Dec 9 11:32:00 GMT 2003


Hi,

today I was thinking about the gcc compiler. I run a source distribution 
(Gentoo Linux), and found out that simultaneous compilation of multiple 
packages actually takes longer than compiling them in sequence, because 
of scheduling overhead.
Then I asked myself: why does gcc not compile multiple source files in 
one go, using threads? This reduces overhead and is still quicker, 
mainly because for example header files only have to be compiled once, 
and inter-source file dependencies can be resolved at an earlier stage, 
and all the other possible optimizations you guys can think of.
I realise that this would mean a huge rewrite, if not a terrible "start 
from scratch". However, it would (IMHO) change compiling forever...

That's it for my wild idea. Whatever your answer, thank you guys for 
this brilliant piece of work.

Cheers,

Simon
-- 
"Yesterday is history, today is a gift and tomorrow is a mystery"
E: simon <at-sign> dehartog.nl
W: http://simon.dehartog.nl/
P: +31-6-15094709
M: simon_net <at-sign> rootsr.com
I: 8714776
K: http://www.rootsr.com/simon.crt



More information about the Gcc mailing list