Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Optimal compile flags for a pentium IV with gcc 3.1...
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
DataShark
n00b
n00b


Joined: 26 May 2002
Posts: 28
Location: Portugal

PostPosted: Sun May 26, 2002 9:59 pm    Post subject: Optimal compile flags for a pentium IV with gcc 3.1... Reply with quote

Hí all!

since the vast majority of gcc31 problems seems to be related with the usage of athlon optimizations i'd like to know if there is any (hidden) mess if one is using the new pIV optimizations. If not which is the optimal set ? ( to me only speed(&stability) matters, not compile time nor binary sizes :) - the system in cause is a toshiba P4 notebook )


Thanxs in advance :D
Back to top
View user's profile Send private message
klieber
Bodhisattva
Bodhisattva


Joined: 17 Apr 2002
Posts: 3657
Location: San Francisco, CA

PostPosted: Sun May 26, 2002 10:07 pm    Post subject: Re: Optimal compile flags for a pentium IV with gcc 3.1... Reply with quote

I haven't heard of too many positive reports of people using gcc 3.1 on Gentoo. See this thread for a couple of examples of why.

--kurt
_________________
The problem with political jokes is that they get elected
Back to top
View user's profile Send private message
Forge
Tux's lil' helper
Tux's lil' helper


Joined: 20 Jun 2002
Posts: 125
Location: KOP, PA, USA

PostPosted: Wed Jul 03, 2002 6:02 pm    Post subject: Reply with quote

I have been unable to install either 1.3a or 1.3b on my P4 system.

With decent optimizations, compiles break at several points (can't recall which).

With stock opts/no opts, I kill compilation after a day or two, since I get sick and tired of having the box down.
Back to top
View user's profile Send private message
amigadave
n00b
n00b


Joined: 29 Apr 2002
Posts: 55
Location: UK

PostPosted: Thu Jul 04, 2002 8:28 am    Post subject: Reply with quote

Gentoo with GCC 3.1 works great for me and several friends. However, we all have Athlon Thunderbird's, using the flag:
Code:
-march=athlon-tbird -O3 -fomit-frame-pointer -pipe


I have X, KDE and Gnome2 compiled and working great, there are only a few packages (for me anyway) that won't compile, but dropping the optimisation level to -O2 and possibly -march=i686 or -march=i486 normally helps. So, a positive report of someone using GCC 3.1 on their Gentoo box(es) :D
Back to top
View user's profile Send private message
Scandium
Retired Dev
Retired Dev


Joined: 22 Apr 2002
Posts: 340
Location: Germany

PostPosted: Thu Jul 04, 2002 9:32 am    Post subject: Reply with quote

P4 optimisations are broken in gcc 3.1 (will be fixed in 3.1.1).

I can't give any technical details I just read it (and didn't go any deeper into it as I have an Athlon and no P4)
Back to top
View user's profile Send private message
trapni
Retired Dev
Retired Dev


Joined: 16 May 2002
Posts: 251
Location: Germany/Berlin

PostPosted: Thu Jul 04, 2002 2:01 pm    Post subject: Reply with quote

klieber wrote:
I haven't heard of too many positive reports of people using gcc 3.1 on Gentoo. See this thread for a couple of examples of why.
Sorry, klieber, but it seems that I can't agree ultimately ;) I now moved to Gentoo gcc3.1 on one desktop pc, a laptop, and two server machines in success.
Of course, there are bugs in gcc3.1 for the Pentium-4 optimizations. But here I just changed for that package (xfree) to pentium-3. That works fine :) Although I can't remember any compilter bug or syntax error raised by gcc3.1 exept of the some as we all started using gcc3.1 for gentoo ;)

Cheers,
Christian Parpart.
Back to top
View user's profile Send private message
d-range
n00b
n00b


Joined: 02 Jul 2002
Posts: 2

PostPosted: Tue Jul 09, 2002 7:18 am    Post subject: positive 1.3b experiences Reply with quote

Don't agree with klieber either. As long as you know what your doing, 1.3b works flawlessly. OK, it takes some time and recompiling to get everything right, but that's all for the fun of it.

I compiled stage1 with:

"-march=athlon -O3 -mmmx -m3dnow -malign-double -falign-functions=4 -funroll-loops -fschedule-insns2 -pipe"

stage two with:

"-march=athlon -O3 -mmmx -m3dnow -fomit-frame-pointer -funroll-loops -fschedule-insns2 -pipe"

all kde packages with -O2 instead of -O3, and without -malign-double (with it all kde programs would only crash), and everything else (including X, gnome-libs and all gtk stuff) with

"-march=athlon -O3 -mmmx -m3dnow -O3 -mmmx -m3dnow -fomit-frame-pointer -malign-double -falign-functions=4 -falign-loops=4 -falign-jumps=4 -funroll-loops -fschedule-insns2"

I think the flags above are about as far as you can push athlon optimizations (maybe if you include -ffast-math as well it gets even faster, but some programs, notably mozilla, will have behave strangely with it).

I haven't had any problems with these flags on a Duron 800, and it's blazingly fast and rock-solid stable :-)

Hope this helps somebody!

d-range
Back to top
View user's profile Send private message
rac
Bodhisattva
Bodhisattva


Joined: 30 May 2002
Posts: 6553
Location: Japanifornia

PostPosted: Tue Jul 09, 2002 7:24 am    Post subject: Reply with quote

There is a GCC 3.1.1 ebuild that claims to expressly address the P4 optimization issues.
_________________
For every higher wall, there is a taller ladder
Back to top
View user's profile Send private message
Scandium
Retired Dev
Retired Dev


Joined: 22 Apr 2002
Posts: 340
Location: Germany

PostPosted: Tue Jul 09, 2002 11:10 am    Post subject: Reply with quote

yes, seems like there is one since yesterday.
After all, gcc 3.1.1 will be released in a week anyway =)
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