Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to switch to GCC 3.1? Which optimisations?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
hanno
n00b
n00b


Joined: 28 Apr 2002
Posts: 15

PostPosted: Sat May 18, 2002 9:08 am    Post subject: How to switch to GCC 3.1? Which optimisations? Reply with quote

I noticed that GCC 3.1 is now in Gentoo. How can I switch to it? Any known problems?
Which further optimisations (beside -march= and -O3) can I turn on safely (without making my system unstable - I don't care about debugging info or things like that).
Back to top
View user's profile Send private message
Guest






PostPosted: Sat May 18, 2002 9:27 am    Post subject: Reply with quote

If your code uses much floating point arithmetic, -mfpmath=sse could bring some considerable performance increase. But of course your CPU must support the SSE instruction set (Athlon XP and Pentium IV does, I don't know about others). I also use -mmmx -msse -m3dnow but those seem to be 0.0001% range.
Back to top
katakombi
n00b
n00b


Joined: 03 May 2002
Posts: 27

PostPosted: Sat May 18, 2002 1:18 pm    Post subject: Reply with quote

my attempts to emerge it failed.
i took a look into package.mask and commented it out.
Still, it won't emerge, saying:


emerge -p gcc-3.1.ebuild

These are the packages that I would merge, in order.

Calculating dependencies \

!!! ebuild sys-devel/gcc-3.1 not found (possibly blocked by package.mask)



what do we have to do else?
Back to top
View user's profile Send private message
Pablo
n00b
n00b


Joined: 03 May 2002
Posts: 15

PostPosted: Sat May 18, 2002 3:21 pm    Post subject: Reply with quote

If you really want to try it, you could do an

Code:
ebuild /usr/portage/sys-devel/gcc/gcc-3.1.ebuild merge


I don't know the status of the port, but package.mask simply says "needs testing." Just bear in mind that builds usually find their way into that file for a reason...
Back to top
View user's profile Send private message
katakombi
n00b
n00b


Joined: 03 May 2002
Posts: 27

PostPosted: Sun May 19, 2002 7:08 am    Post subject: Reply with quote

thanks,

this one did it for me!
Now i am able to compile with gcc 3.1.
C++ code is processed considerabely faster (without optimization) and that's worth using it for my own projects.

i wouldn't try to reemerge my entire system.... >8^)

keep it up,
katakombi
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming 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