Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compiling improvements
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
atlanticat
n00b
n00b


Joined: 20 Aug 2022
Posts: 13

PostPosted: Fri Jul 05, 2024 3:32 am    Post subject: Compiling improvements Reply with quote

Can Gentoo's compiler be switched to another compiler to speed up installations?
I know there is a fix to make Gentoo use all cores (EMERGE_DEFAULT_OPTS and MAKEOPTS) and another fix to have a server compile the code (distcc).
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3038

PostPosted: Fri Jul 05, 2024 10:19 am    Post subject: Re: Compiling improvements Reply with quote

atlanticat wrote:
Can Gentoo's compiler be switched to another compiler to speed up installations?

If you look at the downloads page, you have a choice of GCC or LLVM+clang as default compiler in the stage 3 image at least for amd64.

Whether changing compiler will speed up anything is another story.
atlanticat wrote:

I know there is a fix to make Gentoo use all cores (EMERGE_DEFAULT_OPTS and MAKEOPTS)

They are options in make.conf file not "fixes".
atlanticat wrote:

and another fix to have a server compile the code (distcc).

The biggest "fix" is to compile on fast hardware.
Back to top
View user's profile Send private message
kimchi_sg
Advocate
Advocate


Joined: 26 Nov 2004
Posts: 3038

PostPosted: Fri Jul 05, 2024 10:45 am    Post subject: clang Reply with quote

for important differences between gcc and clang, please see wiki:
https://wiki.gentoo.org/wiki/Clang

not understanding them may break your system.
Back to top
View user's profile Send private message
pietinger
Moderator
Moderator


Joined: 17 Oct 2006
Posts: 5091
Location: Bavaria

PostPosted: Fri Jul 05, 2024 12:34 pm    Post subject: Re: Compiling improvements Reply with quote

atlanticat wrote:
[...] to make Gentoo use all cores (EMERGE_DEFAULT_OPTS and MAKEOPTS) [...]

Maybe this can help you to understand it better:
https://wiki.gentoo.org/wiki/User:Pietinger/Tutorials/Optimize_compile_times

atlanticat wrote:
[...] and another fix to have a server compile the code (distcc).

With distcc you can compile code on another machine ... it is not a fix ... just a method :lol:

See more: https://wiki.gentoo.org/wiki/Distcc
_________________
https://wiki.gentoo.org/wiki/User:Pietinger
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum