Re: GCC created for multi-core execution?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2 Sep 2020 at 00:02, Carsten via Gcc-help <gcc-help@xxxxxxxxxxx> 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.




[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux