Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
May I have my cflags checked, please?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Thu Sep 15, 2005 3:52 pm    Post subject: May I have my cflags checked, please? Reply with quote

Hi,
the processor in my gentoo box is this:
Code:
cat /proc/cpuinfo
processor       : 0
vendor_id       : AuthenticAMD
cpu family      : 15
model           : 31
model name      : AMD Athlon(tm) 64 Processor 3000+
stepping        : 0
cpu MHz         : 1802.332
cache size      : 512 KB
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 lahf_lm
bogomips        : 3530.75
TLB size        : 1024 4K pages
clflush size    : 64
cache_alignment : 64
address sizes   : 40 bits physical, 48 bits virtual
power management: ts fid vid ttp


And my cflags in make.conf look like this:
Code:
CFLAGS="-march=k8 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"


Is this setting an optimal one. Is there any room for improvement? Does it depend on the software installed or on a combination of cpu + other hardware? I keep my box up-to-date on a weekly basis. So please assume that the GCC is fresh.

thanks for any information.

Agryppa
_________________
The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office.
Back to top
View user's profile Send private message
Dlareh
Advocate
Advocate


Joined: 06 Aug 2005
Posts: 2102

PostPosted: Thu Sep 15, 2005 4:06 pm    Post subject: Reply with quote

Those are the defaults. My amd64 server is configured the same way, except I have -march=athlon64

(As of right now this is just a synonym for -march=k8, but that may change in future versions of gcc.)

Quote:
Does it depend on the software installed or on a combination of cpu + other hardware?

Most of what applies to x86 applies to amd64 hardware as well. -fomit-frame-pointer is the only notable exception, since amd64 automatically enables this with -O2.

See the CFLAGS Central thread for more information.
_________________
"Mr Thomas Edison has been up on the two previous nights discovering 'a bug' in his phonograph." --Pall Mall Gazette (1889)
Are we THERE yet?
Back to top
View user's profile Send private message
agrypa1
Apprentice
Apprentice


Joined: 31 Mar 2005
Posts: 244

PostPosted: Thu Sep 15, 2005 6:51 pm    Post subject: Reply with quote

Thank you for clarifications.
Agryppa
_________________
The first successor of Saint Peter was Linus (a.d. 68-79) - whose namesake became the creator of Linux in our time. Torvalds' middle name is Benedict - the name assumed by the previous Pope who resigned from office.
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


Joined: 09 Apr 2004
Posts: 10974
Location: the dutch mountains

PostPosted: Fri Sep 16, 2005 4:44 am    Post subject: Reply with quote

Moved from Installing Gentoo to Duplicate Threads.
See here instead: https://forums.gentoo.org/viewtopic-t-378077-highlight-cflags.html
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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