Question: single CPU usage

dewar@gnat.com dewar@gnat.com
Thu Aug 16 12:56:00 GMT 2001


<<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
system?
>>

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).



More information about the Gcc mailing list