湖南科技网 湖南科技网-科技创新战略,引领时代先锋

AMD型号CPU的CFlags设置

2020-11-22 00:34 已围观148次 来源:湖南科技网 编辑:张馨予

AMD Duron Morgan

AMD Athlon

AMD Athlon Thunderbird

AMD Athlon (Palomino) XP / AMD Duron

AMD Athlon 4

AMD Athlon XP/Geode NX

AMD Athlon MP

AMD Athlon 64

AMD Athlon 64 X2

AMD 1xx Opteron

AMD2xx/8xx Opteron

AMD22xx Dual-Core Opteron

AMD23xx Quad-Core Barcelona

AMDAthlon X2 7x50, AMD Phenom X3/X4, AMD Phenom II, AMD Athlon II X2/X3/X4

AMD Sempron / AMD Sempron64

AMD Turion64 / AMD X2 / AMD Ultra

AMD Mobile Sempron

Intel Atom vendor_id : GenuineIntel cpu family : 6 model : 28 model name : Intel(R) Atom(TM) CPU 230 @ 1.60GHz stepping : 2 cpu MHz : 1596.175 cache size : 512 KB

32 bit profile (x86):

CHOST="i686-pc-linux-gnu" CFLAGS="-march=prescott -O2 -fomit-frame-pointer -pipe" CXXFLAGS="${CFLAGS}"

64 bit profile (amd64) for < GCC 4.3:

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=nocona -O2 -pipe" CXXFLAGS="${CFLAGS}"

64 bit profile (amd64) for GCC 4.3 and 4.4:

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=core2 -O2 -mtune=generic -pipe" CXXFLAGS="${CFLAGS}"

64 bit profile (amd64) for >= GCC 4.5:

CHOST="x86_64-pc-linux-gnu" CFLAGS="-march=atom -O2 -pipe" CXXFLAGS="${CFLAGS}"

AMD K6 CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD K6-2 vendor_id : AuthenticAMD cpu family : 5 model : 8 CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6-2 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" processor : 0 vendor_id : AuthenticAMD cpu family : 5 model : 8 model name : AMD-K6(tm) 3D processor stepping : 12 cpu MHz : 451.031 cache size : 64 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr mce cx8 pge mmx syscall 3dnow k6_mtrr up bogomips : 902.84 clflush size : 32

Note: /proc/cpuinfo may be confusing. The model name may say "AMD-K6(tm) 3D Processor" but it is not a AMD K6-3. Rely on the vendor_id, CPU family, and model number.

AMD Geode LX processor : 0 vendor_id : AuthenticAMD cpu family : 5 model : 10 model name : Geode(TM) Integrated Processor by AMD PCS stepping : 2 cpu MHz : 498.044 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu de pse tsc msr cx8 sep pge cmov clflush mmx mmxext 3dnowext 3dnow bogomips : 996.08 clflush size : 32 CHOST="i486-pc-linux-gnu" CFLAGS="-march=k6-2 -Os -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}"

GCC 4.3+:

CHOST="i486-pc-linux-gnu" CFLAGS="-march=geode -Os -fno-align-jumps -fno-align-functions -fno-align-labels -fno-align-loops -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}"

Note: While i586-pc-linux-gnu CHOST works fine on a Geode LX, i486-pc-linux-gnu should be a more performant choice right now due to the way Geode LX CPU pipeline and scheduling works. glibc i586 assembler optimized routines are measurably slower than the i486 ones on a Geode LX.

AMD Geode GX1 CHOST="i586-pc-linux-gnu" CFLAGS="-march=pentium-mmx -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD K6-3 CHOST="i586-pc-linux-gnu" CFLAGS="-march=k6-3 -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD Duron

From 600 to 900 MHz. These models have a tbird-alike core model.

product: AMD Duron(tm) Processor version: 6.3.1

CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD Mobile Duron vendor_id : AuthenticAMD cpu family : 6 model : 3 model name : AMD Duron(tm) Processor CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-tbird -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD Duron Morgan

From 900 to 1300 MHz. The Morgan Durons are based on the Palomino core, and hence can be treated as Athlon XP's.

vendor_id : AuthenticAMD cpu family : 6 model : 7 model name : AMD Duron(tm) Processor stepping : 1 CHOST="i686-pc-linux-gnu" CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer" CXXFLAGS="${CFLAGS}" AMD Athlon vendor_id : AuthenticAMD cpu family : 6 model : 8 or 4 or 2 or 1 model name : AMD Athlon(TM)Processor or AMD-K7(TM)Processor stepping : 4 or 2 or 1