
Code: Select all
mpeg2enc -v 0 -4 2 -2 1 -q 3 -D 10 -H -c -b 8000
mp2enc -v 0 -r 48000 -b 224
Code: Select all
-march=k8 -O2 -pipe: 3:44 encode time
-march=k8 -O3 -pipe: 3:39 encode time
-march=k8 -O3 -funroll-all-loops -fpeel-loops -ftracer -pipe: 3:28 encode time





I installed gentoo with "-march=athlon64 -O2 -pipe -fweb -frename-registers" and it was very smooth install overall.NismoC32 wrote:What CFLAG should I use during Installastion og Gentoo -x86_64 ?
Having problem getting it installed.
It stops on "gettext" if i use stage 1 and "cracklib" on stage 2 and "ucl" on stage 3.
Dont't know if it has someting to do with CFLAG setting or other things though.
I have used this settings:
"-02 -march=athlon64 -ftrace -fprefetch-loop-arrays -pipe".
I use the same, but with -ftracer also. Whole system is compiled with the same flags (except for when they are filtered, obviously). Everything runs smoothly. Everything is stable.elocal wrote:I installed gentoo with "-march=athlon64 -O2 -pipe -fweb -frename-registers" and it was very smooth install overall.NismoC32 wrote:What CFLAG should I use during Installastion og Gentoo -x86_64 ?
Having problem getting it installed.
It stops on "gettext" if i use stage 1 and "cracklib" on stage 2 and "ucl" on stage 3.
Dont't know if it has someting to do with CFLAG setting or other things though.
I have used this settings:
"-02 -march=athlon64 -ftrace -fprefetch-loop-arrays -pipe".

Code: Select all
CFLAGS="-march=athlon64 -O2 -fweb -frename-registers -ftracer -pipe"I thought I had read the same ie that gcc-4.0 would differentiate between the four potential -march cflags for amd x86-64 chips. However when I tried to find the quote I couldn't at all - in fact everything, including the release docs for gcc-4.0, points to there being no difference between these still. Is this something that has slipped to gcc-4.1 or have I just imagined it?lavish wrote:U have? lol ehehTrevoke wrote:I have; if there are no differences, then why keep several separate options?
There will be some differences in gcc >=4.0
I use CFLAGS="-march=athlon64 -O3 -ftracer -pipe" and everything, including Firefox, works fine.silverpig wrote:-march=athlon64 -02 -pipe -fomit-frame-pointer
I did the install initially with -03 and almost everything worked. I couldn't compile firefox though. I changed to -02 and it emerged just fine.
Code: Select all
CFLAGS="-O3 -march=athlon64 -mtune=athlon64 gftracer -fprefetch-loop-arrays -pipe -funroll-loops -mfpmath=sse -fweb -frename-registers -fmove-all-movables -fpeel-loops -freduce-all-givs -mno-align-stringops -minline-all-stringops -mno-push-args -momit-leaf-frame-pointer -fomit-frame-pointer"Code: Select all
CFLAGS="-march="athlon64 -mtune=athlon64 -O2 -pipe -fweb -frename-registers -ftracer"Check out this bug:hvengel wrote:The AMD document also recommends the use of thier AMD Core Math Library (ACML). Just for giggles I tried emerge -pv acml and it is masked by ~amd64. I have some stuff that I run that I think might benifit from faster math libraries. Has anyone unmasked this? Does it help? Do you need to set a use flag?

it seems "-fomit-frame-pointer" is absolutely redundant if you use "-O?"-fomit-frame-pointer
Don't keep the frame pointer in a register for functions that don't need one. This avoids the instructions to save, set up and restore frame pointers; it also makes an extra register available in many functions. It also makes debugging impossible on some machines.
On some machines, such as the VAX, this flag has no effect, because the standard calling sequence automatically handles the frame pointer and nothing is saved by pretending it doesn't exist. The machine-description macro FRAME_POINTER_REQUIRED controls whether a target machine supports this flag. See Register Usage.
Enabled at levels -O, -O2, -O3, -Os.