View previous topic :: View next topic |
Author |
Message |
Ido n00b
Joined: 17 Sep 2003 Posts: 58
|
Posted: Mon Jul 26, 2004 8:06 pm Post subject: my make.conf and CFLAGS... |
|
|
this is what i have now:
Code: |
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
ACCEPT_KEYWORDS="x86"
USE="gtk gnome kde qt dvd alsa cdr bidi"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"
GENTOO_MIRRORS="http://mirror.hamakor.org.il/pub/mirrors/gentoo"
|
i don't know what to put in the CFLAGS...
this is my box:
AMD 2400+
GigaByte MotherBoard: GA-7DXR
256x2 DDR 266MHZ RAM
40GB Maxtor HD
Asus Gforce 3 TI2000
Creative Audigy 2 Sound card
MSI DVDRW 8X
what should I put in CFLAGS and in my make.cong in general? |
|
Back to top |
|
|
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Mon Jul 26, 2004 8:30 pm Post subject: |
|
|
Hi
Looks fine at the moment, but you might want to add "-ftracer" and/or "-pipe" and/or "-funroll-loops".
Ben |
|
Back to top |
|
|
Ido n00b
Joined: 17 Sep 2003 Posts: 58
|
Posted: Mon Jul 26, 2004 8:33 pm Post subject: |
|
|
Ben2040 wrote: | Hi
Looks fine at the moment, but you might want to add "-ftracer" and/or "-pipe" and/or "-funroll-loops".
Ben |
u mean: CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -funroll-loops"
?
and what the difference between O2 and O3?
cuz i sow this line for AMD prossesors:
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -fomit-frame-pointer -ffast-math -pipe" |
|
Back to top |
|
|
Ben2040 Guru
Joined: 07 May 2003 Posts: 445 Location: UK
|
Posted: Mon Jul 26, 2004 10:27 pm Post subject: |
|
|
Ido wrote: | Ben2040 wrote: | Hi
Looks fine at the moment, but you might want to add "-ftracer" and/or "-pipe" and/or "-funroll-loops".
Ben |
u mean: CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer -pipe -funroll-loops"
? |
Yep
Ido wrote: |
and what the difference between O2 and O3?
|
O2 adds less optimisations, and some reckon it speeds up compilation - I personally haven't seen a difference, and use 03 exclusivly.
Ido wrote: |
cuz i sow this line for AMD prossesors:
CFLAGS="-O3 -march=athlon-xp -funroll-loops -fprefetch-loop-arrays -fomit-frame-pointer -ffast-math -pipe" |
Again some reckon that "-ffast-math" can slow down some programs and endanger others etc. so I leave that off, but someone else might know different. Not sure about "-fprefetch-loop-arrays" - anyone?.
Ben |
|
Back to top |
|
|
|