This is the mail archive of the
mailing list for the GCC project.
Re: Question: single CPU usage
- To: gcc at gcc dot gnu dot org, joy dot woodford at hos dot horizon dot ie
- Subject: Re: Question: single CPU usage
- From: dewar at gnat dot com
- Date: Thu, 16 Aug 2001 15:56:32 -0400 (EDT)
<<I have been advised that gcc will only use one CPU on any machine that
it is running.
Is this true?
Are there any plans to make gcc take advantage of additional CPUs in a
Not quite clear what you are asking.
Can gcc compiled programs take advantage of more than one CPU, yes, of
course by making appropriate thread calls.
Does gcc itself use more than one CPU for a single compiler, no, and it
would not make any sense to try to do so.
What does make sense is to use a parallel make facility for compiling
large systems, and we have found this very useful in GNAT (where the
-j switch of gnatmake specifies the number of processes, and it is often
worth while to have more than one process, even on a single CPU).