Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
my make.conf and CFLAGS...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Ido
n00b
n00b


Joined: 17 Sep 2003
Posts: 58

PostPosted: Mon Jul 26, 2004 8:06 pm    Post subject: my make.conf and CFLAGS... Reply with quote

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
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Mon Jul 26, 2004 8:30 pm    Post subject: Reply with quote

Hi


Looks fine at the moment, but you might want to add "-ftracer" and/or "-pipe" and/or "-funroll-loops".

Ben
Back to top
View user's profile Send private message
Ido
n00b
n00b


Joined: 17 Sep 2003
Posts: 58

PostPosted: Mon Jul 26, 2004 8:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Ben2040
Guru
Guru


Joined: 07 May 2003
Posts: 445
Location: UK

PostPosted: Mon Jul 26, 2004 10:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum