GCC created for multi-core execution?

Jonathan Wakely jwakely.gcc@gmail.com
Wed Sep 2 08:37:12 GMT 2020

On Wed, 2 Sep 2020 at 00:02, Carsten via Gcc-help <gcc-help@gcc.gnu.org> wrote:
> Hi GCC creators,
> I don’t think that I can find this question in the manual so I grip your mail instead.
> I’ve used GCC as inside Codeblocks for ~20 years .. and there’s no sign for me stopping anyday soon. My program does have enough compile-time to tempt a quick tobacco-break .. so I’m on the lookout for a quicker pc. To that end I wonder if I can blame GCC for investing in a multi-core pc .. ? I figure, that GCC must have been programmed with multi-threading to take advance of the multi-core pc’s ?

No, GCC is single-threaded.

The way to achieve build parallelism is to compile multiple files at
once, which is the job of your build system (e.g. the 'make' tool).
Running 'make -j4' will run 4 jobs at once, compiling up to 4 source
files at once.

More information about the Gcc-help mailing list