GCC best compilation parameters

xiaoxiao2021-03-06  186

First, version 1.2 (GCC 2.9.x version)

I386 (Intel), Do you really want to install geentoo on what?

Chost = "i386-pc-linux-gnu"

Cflags = "- march = i386 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i386 -o3 -pipe -fomit-frame-pointer"

I486 (Intel), Do you really want to install geentoo on what?

Chost = "i486-pc-linux-gnu"

Cflags = "- march = i486 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i486 -o3 -pipe -fomit-frame-pointer"

Pentium, Pentium MMX , Celeron (Intel)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = pentium -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium -o3 -pipe -fomit-frame-pointer"

Pentium Pro / II / III / 4, Celron (Coppermine), Celeron (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = i686 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i686 -o3 -pipe -fomit-frame-pointer"

Eden C3 / EZRA (VIA)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = i586 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i586 -o3 -pipe -fomit-frame-pointer"

Quote: I Did The Original Gentoo Install Using 1.2, with GCC 2.95 Using -March = i586. I686 Won't work.

K6 or Beyond (AMD)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = k6 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = k6 -o3 -pipe -fomit-frame-pointer"

(A duron will report "Athlon" in ITS / Proc / CPUInfo)

Athlon (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = k6 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = k6 -o3 -pipe -fomit-frame-pointer"

For The Following, I Don't know in any flag thing enhance performances ..., do you?

PowerPC

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER"

Sparc

Chost = "sparc-unknown-linux-gnu"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER"

SPARC 64

Chost = "sparc64-unknown-linux-gnu"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER"

Second, version 1.4 (GCC 3.x):

I386 (Intel), Do you really want to install geentoo on what?

Chost = "i386-pc-linux-gnu"

Cflags = "- march = i386 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i386 -o3 -pipe -fomit-frame-pointer"

I486 (Intel), Do you really want to install geentoo on what?

Chost = "i486-pc-linux-gnu"

Cflags = "- march = i486 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i486 -o3 -pipe -fomit-frame-pointer"

Pentium 1 (Intel)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = pentium -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium -o3 -pipe -fomit-frame-pointer"

Pentium MMX (Intel)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = pentium-mmx -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium-mmx -o3 -pipe -fomit-frame-point" "

Pentium Pro (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentiumpro -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentiumpro -o3 -pipe -fomit-frame-pointer"

Pentium II (Intel)

Chost = "i686-pc-linux-gnu" cflags = "- march = pentium2 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium2 -o3 -pipe -fomit-frame-pointer"

Celeron (Mendocino), AKA Celeron1 (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentium2 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium2 -o3 -pipe -fomit-frame-pointer"

Pentium III (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentium3 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium3 -o3 -pipe -fomit-frame-pointer"

Celeron (Coppermine) AKA Celeron2 (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentium3 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium3 -o3 -pipe -fomit-frame-pointer"

Celeron (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentium4 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium4 -o3 -pipe -fomit-frame-pointer"

Pentium 4 (Intel)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = pentium4 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = pentium4 -o3 -pipe -fomit-frame-pointer"

Eden C3 / EZRA (VIA)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = i586 -m3dnow -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = i586 -m3dnow -o3 -pipe -fomit-frame-pointer"

Quote: The Ezra Doesn't Have Any Special Instructions That You Could Optimize For, Just Consider IS A K6-3 ... Basically

a p2 with 3dnow

K6 (AMD)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = k6 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = k6 -o3 -pipe -fomit-frame-pointer"

K6-2 (AMD)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = k6-2 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = k6-2 -o3 -pipe -fomit-frame-pointer"

K6-3 (AMD)

Chost = "i586-pc-linux-gnu"

Cflags = "- march = k6-3 -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = k6-3 -o3 -pipe -fomit-frame-pointer"

Athlon (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = attlon -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = Athlon -o3 -Pipe -Fomit-frame-pointer"

Athlon-Tbird, Aka K7 (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = attar-tbird -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = Athlon-tbird -o3 -pipe -fomit-frame-pointer"

Athlon-Tbird XP (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = Athlon-xp -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = Athlon-xp -o3 -pipe -fomit-frame-pointer"

Athlon 4 (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = Athlon-4 -O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- march = Athlon-4 -O3 -Pipe -Fomit-frame-point"

Athlon XP (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = Athlon-xp -o3 -pipe -fomit-frame-pointer"

CXXFLAGS = "- march = Athlon-xp -o3 -pipe -fomit-frame-pointer"

Athlon MP (AMD)

Chost = "i686-pc-linux-gnu"

Cflags = "- march = Athlon-Mp -O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- march = Athlon-Mp -O3 -Pipe -Fomit-frame-Pointer"

603 (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU" cflags = "- o3 -pipe -fomit-frame-pointer -fsigned-char"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

603E (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

604 (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

604E (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

750 AKA AS G3 (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- MCPU = 750 -O3 -PIPE -FOMIT-FRAME-POINTER

-fsigned-char "

CXXFLAGS = "- MCPU = 750 -o3 -pipe -fomit-frame-pointer

-fsigned-char "

Note: do not use -march =

7400, AKA G4 (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- MCPU = 7400 -O3 -PIPE -FOMIT-FRAME-POINTER

-fsigned-char -maltivec

CXXFLAGS = "- MCPU = 7400 -o3 -pipe -fomit-frame-pointer

-fsigned-char -maltivec

Note: do not use -march =

7450, AKA G4 Second Generation (PowerPC)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- MCPU = 7450 -O3 -PIPE -FOMIT-FRAME-POINTER

-fsigned-char -maltivec

CXXFLAGS = "- MCPU = 7450 -o3 -pipe -fomit-frame-pointer

-fsigned-char -maltivec

Note: do not use -march =

PowerPC (if you don't know which one)

Chost = "PowerPC-Unknown-Linux-GNU"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSigned-char" cxxflags = "- O3 -PIPE -FOMIT-FRAME-POINTER -FSIGNED-CHAR"

Sparc

Chost = "sparc-unknown-linux-gnu"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER"

SPARC 64

Chost = "sparc64-unknown-linux-gnu"

Cflags = "- O3 -PIPE -FOMIT-FRAME-POINTER"

CXXFLAGS = "- O3 -PIPE -FOMIT-FRAME-POINTER"

转载请注明原文地址:https://www.9cbs.com/read-128187.html

New Post(0)