View previous topic :: View next topic |
Author |
Message |
Ijo n00b
Joined: 22 Jul 2003 Posts: 68
|
Posted: Tue Jul 22, 2003 5:51 pm Post subject: Recommended CFLAG for Pentium4 (IBM T30) |
|
|
I'm about to receive a T30 which has a Pentium4. I want to build from stage1, but I've seen lots of msgs around about the problem of using -march=pentium4.
Is there still a problem with 1.4RC4?
What's your CFLAG suggestion for a Pentium4 for a well optiomized system (not necesary a maximum optimization)?
Whould it make a real noticeable difference to compile with -march=pentium3?
thanks in advance,
ijo |
|
Back to top |
|
|
Megaptera Tux's lil' helper
Joined: 29 Jul 2002 Posts: 145
|
Posted: Wed Jul 23, 2003 4:29 am Post subject: |
|
|
-march=pentium4 is problematic with gcc 3.2.2 -- it makes buggy code in some situations. Unless you don't mind using a masked version of gcc (3.2.3 or 3.3) then stick with -march=pentium3, but the problem is fixed in more recent releases.
I keep my cflags pretty conservative, personally, but I do use 3.2.3 with "-march=pentium4 -O3 -pipe -fomit-frame-pointer". There are some ebuilds out there, like XFree86 4.3.0, that will automatically change march=p4 to march=p3, though. As for noticeable, well, I guess that depends on how close attention you're paying -- I haven't seen any benchmarks :)
My reasoning is like this: GCC 3.2.3 seems to be within my own tolerance for stability, and even though I wouldn't be able to tell you which ebuilds switch p4 for p3 just by using the program, it's not like anything's going to suffer by using p4. I've personally had no problems with it.
Oh, and side-note: Stuff like this isn't a problem with 1.4rc4 or anything like that. The Gentoo version number more accurately represents how far the install CD has progressed than the Gentoo system that will be installed; I have a fairly anemic test box that was originally installed off of a 1.1 cd, and I could theoretically get it to use -march=pentium4* with no problems just by using the right gcc.
*it's not actually a p4, so -march=p4 wouldn't technically work but for an entirely different and obvious reason :) But if it were, it would work fine. _________________ It is not like the world will end if I take the day off from eating worlds. |
|
Back to top |
|
|
|
|
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
|
|