gcc: which processor-optimization to use for AMD Duron?
From: Koppe74 (koppe74_at_gmail.com)
Date: 03/01/05
- Next message: mappopo: "Fedora core 3 frozen"
- Previous message: Laurenz Albe: "Re: tar question"
- Next in thread: Thomas D. Shepard: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Reply: Thomas D. Shepard: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Reply: Mike Mol: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Next message: mappopo: "Fedora core 3 frozen"
- Previous message: Laurenz Albe: "Re: tar question"
- Next in thread: Thomas D. Shepard: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Reply: Thomas D. Shepard: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Reply: Mike Mol: "Re: gcc: which processor-optimization to use for AMD Duron?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|