
Code: Select all
-march=athlon64 -msse3 -pipe -O2 -fno-ident -fforce-addr -fomit-frame-pointer -funroll-loopsCode: Select all
cat /proc/cpuinfo
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 4
model name : AMD Athlon(tm) 64 Processor 3200+
stepping : 8
cpu MHz : 800.000
cache size : 1024 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 pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext lm 3dnowext 3dnow ts fid vid ttp
bogomips : 1609.09
Well I don't know what profile at all. All I know is that these flags are not used despite I set them in make.conf. But I don't know if they have anything to do with CFLAGS and GCC optimizations...lnxz wrote:What profile might that be?
Personally neither of those flags have caused any problems (that I've been able to notice).

Code: Select all
#!/bin/bash
# fs2_open Compile Script
# These are only examples, uncomment to enable optimization.
MY_CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -msse3 -fno-ident -freorder-blocks-and-partition -ftracer -fvisibility-inlines-hidden -fno-enforce-eh-specs"
if [ -e ./fs2_open/ ];
cd fs2_open
if [ -e ./Makefile.in ]; then
make clean
./configure CFLAGS="$MY_CFLAGS" CXXFLAGS="$MY_CFLAGS"
make
else
./autogen.sh CFLAGS="$MY_CFLAGS" CXXFLAGS="$MY_CFLAGS"
make
fi
else
echo "No fs2_open directory found."
fiCode: Select all
#!/bin/bash
# fs2_open Compile Script
# These are only examples, uncomment to enable optimization.
MY_CFLAGS="-march=athlon64 -pipe -O2 -fomit-frame-pointer -msse3 -fno-ident -freorder-blocks-and-partition -ftracer -fvisibility-inlines-hidden -fno-enforce-eh-specs"
MY_LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--sort-common"
if [ -e ./fs2_open/ ];
cd fs2_open
if [ -e ./Makefile.in ]; then
make clean
./configure CFLAGS="$MY_CFLAGS" CXXFLAGS="$MY_CFLAGS" LDFLAGS="$MY_LDFLAGS"
make
else
./autogen.sh CFLAGS="$MY_CFLAGS" CXXFLAGS="$MY_CFLAGS" LDFLAGS="$MY_LDFLAGS"
make
fi
else
echo "No fs2_open directory found."
fi
Hi, I'm not a lamer o a troll, but I want to suggest you to utilize that version of portage bashrc that me and my frinds are developing.enderandrew wrote:CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
CXXFLAGS="${CXXFLAGS} -ffriend-injection"
CXXFLAGS="${CXXFLAGS} -fvisibility-inlines-hidden"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed"
...The reason I have the two CXXFLAGS on other lines is that if I ever run into a package where one of these doesn't work (considerably less often these days) I can easily comment that line out...

The processor is 64bit capable, so the Host is set to "x86_64-pc-linux-gnu" and does the arch "prescott" enables 64bits capacities ?enderandrew wrote:I'm pretty sure k8 is the wrong arch for the Celeron D series. The k8 arch is for Semperon/Athlon 64/Opteron processors.
As far as CFLAGs, if you ask ten people you'll hear at least 5 different things.
You currently have very stable (though boring) flags. There is nothing wrong with them.
Personally, I'd go with something like the following:
CFLAGS="-march=prescott -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
This is fairly sane, and not a huge deviation from what you're running now. I know some people also claim to have decent results adding -ftracer and -fweb but I've tried them and I couldn't tell either way.
Why did yuo use the uclibc instead the normal glibc?enderandrew wrote:I use GCC 4.1.1 SVN with the UCLIBC and PIE patches.
Code: Select all
-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.
Enabled at levels -O, -O2, -O3, -Os.Where did you find this?lordlouf wrote:I finally found that for a Celeron D, it is recommanded to set arch to "nocona". it's working quite well.
Code: Select all
CFLAGS="-O3 -march=athlon64 -ffast-math -funroll-all-loops -funit-at-a-time -fpeel-loops -ftracer -funswitch-loops -fomit-frame-pointer -pipe"
Code: Select all
processor : 0
vendor_id : AuthenticAMD
cpu family : 15
model : 44
model name : AMD Sempron(tm) Processor 2600+
stepping : 2
cpu MHz : 1607.852
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 vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm ts ttp tm stc
bogomips : 3218.43
Code: Select all
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
Yes, that´s what I would use.CosminG wrote:I have one question. Since I want to stick to x86 cand I use for my processor:these settingsCode: Select all
processor : 0 vendor_id : AuthenticAMD cpu family : 15 model : 44 model name : AMD Sempron(tm) Processor 2600+ stepping : 2 cpu MHz : 1607.852 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 vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx mmxext fxsr_opt lm 3dnowext 3dnow up pni lahf_lm ts ttp tm stc bogomips : 3218.43Code: Select all
CFLAGS="-march=athlon64 -msse3 -O2 -pipe -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" CXXFLAGS="${CFLAGS}"
It wouldn´t suprise me. Apple probably optimize with what they think is appropriate for the situation. Most apps doesn´t benefit from performance optimizations. What matters is binary size as smaller binaries loads faster, uses less memory etc. So -Os would be the fastest and -O3 the slowest and other optimizations that also bloats would slow down further (-funroll-loops etc). There are some exceptions like image/audio/video decoders and such that runs better when they´re optimized for performance.AnXa wrote:aah, f*** em'. I'll be adventurous and but -Os into my CFlags and recompile system with GCC4.1.1. Let's see what happens...
EDIT: OMG! I was just told that MacOSX is optimized with -Os!!Can you belive it! Apple optimizes for size and not for full speed.