Re: [gentoo-user] AthlonXP flags
On 6/14/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: I think it is better to set sse on a USE flag so if a program is made to use them (i.e. X.org), it can, but it doesn't affect the other packages that weren't made with them in mind. And, directly from the X.org ebuild, we can find this: # Recently there has been a lot of stability problem in Gentoo-land. Many # things can be the cause to this, but I believe that it is due to gcc3 # still having issues with optimizations, or with it not filtering bad # combinations (protecting the user maybe from themselves) yet. # # This can clearly be seen in large builds like glibc, where too aggressive # CFLAGS cause the tests to fail miserbly. # # Quote from Nick Jones [EMAIL PROTECTED], who in my opinion # knows what he is talking about: # # People really shouldn't force code-specific options on... It's a # bad idea. The -march options aren't just to look pretty. They enable # options that are sensible (and include sse,mmx,3dnow when appropriate). # # The next command strips CFLAGS and CXXFLAGS from nearly all flags. If # you do not like it, comment it, but do not bugreport if you run into # problems. # # [EMAIL PROTECTED] (13 Oct 2002) strip-flags I think the quote from Nick Jones just reinforces my argument. Every gentoo user who likes to mess with every flag in gcc should at least read gcc's online documentation. Of course I have commented that out and compiled X.org with my normal cflags. I haven't found where strip-flags is defined to see what it really strips, but I have confidence in my cflags (-O2 -pipe -march=athlon64 -fomit-frame-pointer). -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list
[gentoo-user] AthlonXP flags
I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
On 6/13/05, Allan Spagnol Comar [EMAIL PROTECTED] wrote: I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. -- Colin -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
I know the safe ones: -march=athlon-xp -O3 -fomit-frame-pointer -pipe You can use -02 if you don't want to take much time in compiling and in some cases the binary is actually faster than -O3 (I heard this from others, I'm testing it now). Also -pipe is only supposed to make compile time faster, but don't use it unless you have a lot of RAM. 2005/6/13, Allan Spagnol Comar [EMAIL PROTECTED]: I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
thak you all On 6/13/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: I know the safe ones: -march=athlon-xp -O3 -fomit-frame-pointer -pipe You can use -02 if you don't want to take much time in compiling and in some cases the binary is actually faster than -O3 (I heard this from others, I'm testing it now). Also -pipe is only supposed to make compile time faster, but don't use it unless you have a lot of RAM. 2005/6/13, Allan Spagnol Comar [EMAIL PROTECTED]: I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
On 6/13/05, Colin [EMAIL PROTECTED] wrote: You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. Fine, but no need to add mmx, 3dnow!, sse or sse2, as these are implied by -march=athlon-xp. From the online documentation at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html: athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
You're welcome. By the way, look for something about using sse instruction for math. It speeds things up a bit. And put mmx and sse in you USE variable 2005/6/13, Allan Spagnol Comar [EMAIL PROTECTED]: thak you all On 6/13/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: I know the safe ones: -march=athlon-xp -O3 -fomit-frame-pointer -pipe You can use -02 if you don't want to take much time in compiling and in some cases the binary is actually faster than -O3 (I heard this from others, I'm testing it now). Also -pipe is only supposed to make compile time faster, but don't use it unless you have a lot of RAM. 2005/6/13, Allan Spagnol Comar [EMAIL PROTECTED]: I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
By the way, Sempron accepts athlon-xp, right? 2005/6/13, Bruno Lustosa [EMAIL PROTECTED]: On 6/13/05, Colin [EMAIL PROTECTED] wrote: You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. Fine, but no need to add mmx, 3dnow!, sse or sse2, as these are implied by -march=athlon-xp. From the online documentation at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html: athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
Yes, as long as it's the Socket A version. Not sure about the socket 754 version, which may (or may not) use amd64. On 6/13/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: By the way, Sempron accepts athlon-xp, right? 2005/6/13, Bruno Lustosa [EMAIL PROTECTED]: On 6/13/05, Colin [EMAIL PROTECTED] wrote: You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. Fine, but no need to add mmx, 3dnow!, sse or sse2, as these are implied by -march=athlon-xp. From the online documentation at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html: athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- - Mark Shields -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
Oh, Raphael, concerning what you said: By the way, look for something about using sse instruction for math. It speeds things up a bit.. I think you're speaking of -mfpmath=sse. On 6/13/05, Mark Shields [EMAIL PROTECTED] wrote: Yes, as long as it's the Socket A version. Not sure about the socket 754 version, which may (or may not) use amd64. On 6/13/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: By the way, Sempron accepts athlon-xp, right? 2005/6/13, Bruno Lustosa [EMAIL PROTECTED]: On 6/13/05, Colin [EMAIL PROTECTED] wrote: You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. Fine, but no need to add mmx, 3dnow!, sse or sse2, as these are implied by -march=athlon-xp. From the online documentation at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html: athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- - Mark Shields -- - Mark Shields -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
Thanks ;) 2005/6/13, Mark Shields [EMAIL PROTECTED]: Oh, Raphael, concerning what you said: By the way, look for something about using sse instruction for math. It speeds things up a bit.. I think you're speaking of -mfpmath=sse. On 6/13/05, Mark Shields [EMAIL PROTECTED] wrote: Yes, as long as it's the Socket A version. Not sure about the socket 754 version, which may (or may not) use amd64. On 6/13/05, Raphael Melo de Oliveira Bastos Sales [EMAIL PROTECTED] wrote: By the way, Sempron accepts athlon-xp, right? 2005/6/13, Bruno Lustosa [EMAIL PROTECTED]: On 6/13/05, Colin [EMAIL PROTECTED] wrote: You'll want the usual -O2 -pipe -fomit-frame-pointer, but also use -march=athlon-xp. If your processor supports MMX, 3DNow!, SSE or SSE2, add those flags in as well. Fine, but no need to add mmx, 3dnow!, sse or sse2, as these are implied by -march=athlon-xp. From the online documentation at http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html: athlon-4, athlon-xp, athlon-mp Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and full SSE instruction set support. -- Bruno Lustosa, aka Lofofora | Email: [EMAIL PROTECTED] Network Administrator/Web Programmer | ICQ: 1406477 Rio de Janeiro - Brazil | -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list -- - Mark Shields -- - Mark Shields -- gentoo-user@gentoo.org mailing list -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
I believe the way mtune and march is like this: Think of mtune as 'optional' tuning and march as 'required' tuning, meaning: compile for athlon-xp with the mtune option, it will run better on an athlon xp but will also run in i386 (just slower), whereas march will compile for athlon-xp and will only run on athlon-xp. On 6/13/05, Volker Armin Hemmann [EMAIL PROTECTED] wrote: On Monday 13 June 2005 21:53, Allan Spagnol Comar wrote: I was looking over the internet for some CFLAGS for athlon XP and I didn't found any. Does someone knows what are the best C and CXXFLASG for athlon XP ? march=athlon-xp -mmmx -msse -O2 -fomit-frame-pointer -pipe why mmx and sse? because, when the 'march' is filtered ands replaced by an 'mtune' there would not be any mmx/3dnow opts, right? -- gentoo-user@gentoo.org mailing list -- - Mark Shields -- gentoo-user@gentoo.org mailing list
Re: [gentoo-user] AthlonXP flags
Mark Shields wrote: Oh, Raphael, concerning what you said: By the way, look for something about using sse instruction for math. It speeds things up a bit.. I think you're speaking of -mfpmath=sse. You might want to specify -mfpmath=sse,387 instead. SSE is capable of faster, more precise math than the 387 coprocessor. But not all programs like/use SSE, so always specify a fallback. -- Colin -- gentoo-user@gentoo.org mailing list