This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Question: single CPU usage


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]