gcc: which processor-optimization to use for AMD Duron?

From: Koppe74 (koppe74_at_gmail.com)
Date: 03/01/05


Date: 1 Mar 2005 02:57:37 -0800

I have a rather old (non-portable) computer with a 900MHz
AMD Duron processor. I want to optimize my system as
much as possible for that processor, but am a bit puzzled by
what I should specify as argument for '--march'.

I'm using -- and in the process of re-installing -- Gentoo.

I've used '--march=athlon-xp' before and that seemed
to work flawlessly at first... but lately I've run into
problems when I'm trying to generate info-pages... as
well as with some packages (like 'texinfo).

I was pointed to the following bug, which seems to cover by problems:
http://bugs.gentoo.org/show_bug.cgi?id=77972

Yesterday I tried '--march=athlon', and had a package fail during
configuration becuase the c++ pre-processor (cpp) failed some test.
Now, this *may* be because of other causes (I can honestly say I
didn't pay close enough attention to the process to be sure I even
*had* a 'cpp' yet) -- and I may be able to fix-it by dropping some
USE-flags -- but for now, lets assume '--march=athlon' won't work
either.

According to the 'gcc' documentation, the choices -- apart from
various iX86 (i386, i486,...) and various pentium-related -- are:
Quote:

=> k6
=> AMD K6 CPU with MMX instruction set support.
=> k6-2, k6-3
=> Improved versions of AMD K6 CPU with MMX and 3dNOW!
=> instruction set support.
=> athlon, athlon-tbird
=> AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! and
=> SSE prefetch instructions support.
=> athlon-4, athlon-xp, athlon-mp
=> Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW!
=> and full SSE instruction set support.
=> k8, opteron, athlon64, athlon-fx
=> AMD K8 core based CPUs with x86-64 instruction set
=> support. (This supersets MMX, SSE, SSE2, 3dNOW!, enhanced
=> 3dNOW! and 64-bit instruction set extensions.)

Which one(s) ought to best suited for Duron?

Also, assuming I can't get '--march' to work... should I try '--mcpu'?
AFAI understand, this option also optimize for specific processor, but
without breaking compability with other x86-processors...

Although I can't get "athlon-xp" and "athlon" to work with '--march',
is
it possible to get them to work with '--mcpu' (I assume '--mcpu' is
less
"hardline") ?
Should I try specifying another type than those two for '--mcpu' ?

-Koppe



Relevant Pages

  • Re: [SLE] SuSE 10.1: gcc 4.1 does not have x86_64, how to switch to gcc 3.4 ????
    ... AMD K6 CPU with MMX instruction set support. ... Improved versions of AMD K6 CPU with MMX and 3dNOW! ... AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! ... Improved AMD Athlon CPU with MMX, 3dNOW!, enhanced 3dNOW! ...
    (SuSE)
  • Re: OSR6 Processor confusion - P4 Xeon Extreme Hyper non-sense.
    ... If you want 64 bits stay away from AMD. ... instructions fxsave/fxrstor replaces the earlier fsave/frstor pair used ... save and restore the contents of the additional registers used by SSE ... including the AMD Athlon, Duron, Athlon MP, Athlon XP, Athlon64, Athlon64 ...
    (comp.unix.sco.misc)
  • Re: PC-Eigenbau
    ... Mein jetziger PC AMD K6, 350Mhz, nur 64 Mb RAM ... Prozessor: Ich würde zu einem AMD Athlon 64 3000+ oder etwas schneller raten. ... Mails to the given address may or may not reach me - valid return address will be given when required! ...
    (de.comp.hardware.misc)
  • Re: Question Amd vs Pentium for gaming?
    ... AMD is considerably better for gaming. ... Definitely get an Athlon 64. ... (Semprons aren't bad for a cheap price, but an Athlon 64 is better and you ... high-end video card and lots of RAM if you want a really good gaming rig. ...
    (microsoft.public.windowsxp.general)
  • Re: VmWare Workstation and 2.6.8.1 kernel
    ... Pentium M user test the 2.6.8.1 kernel. ... back to vmware unfortunatly they do not provide support for demo user. ... >> Athlon XP myself. ... >> time I've ever run into any specific issues regarding AMD vs. Intel, ...
    (Fedora)