public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] CFlags for CPU
@ 2011-07-26 20:36 Alokat
  2011-07-26 18:58 ` Michael Mol
                   ` (4 more replies)
  0 siblings, 5 replies; 22+ messages in thread
From: Alokat @ 2011-07-26 20:36 UTC (permalink / raw
  To: Gentoo mailing list

[-- Attachment #1: Type: text/plain, Size: 1220 bytes --]

Hi folks,

I'm wondering what kind of cpu-type I should use?

cat /proc/cpuinfo
..............

processor       : 1
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     L7100  @ 1.20GHz
stepping        : 11
cpu MHz         : 1197.065
cache size      : 4096 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
apicid          : 1
initial apicid  : 1
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge
mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe
syscall nx lm constant_tsc arch_perfmon pebs bts rep_good nopl
aperfmperf pni dtes64 monitor ds_cpl vmx est tm2 ssse3 cx16 xtpr pdcm
lahf_lm ida dts tpr_shadow vnmi flexpriority
bogomips        : 2394.01
clflush size    : 64
cache_alignment : 64
address sizes   : 36 bits physical, 48 bits virtual
power management:

..............

After a short research on this website:
http://gcc.gnu.org/onlinedocs/gcc-4.6.1/gcc/i386-and-x86_002d64-Options.html#i386-and-x86_002d64-Options

I guess *core2* is the right one?
Is that true?

Regards,
alokat
//

[-- Attachment #2: Type: text/html, Size: 2686 bytes --]

^ permalink raw reply	[flat|nested] 22+ messages in thread
* RE: [gentoo-user] CFlags for CPU
@ 2011-07-27 14:52 Pandu Poluan
  0 siblings, 0 replies; 22+ messages in thread
From: Pandu Poluan @ 2011-07-27 14:52 UTC (permalink / raw
  To: gentoo-user

-original message-
Subject: Re: [gentoo-user] CFlags for CPU
From: Andy Wilkinson <drukargin@gmail.com>
Date: 2011-07-27 21:09

>Another good trick I've found on the forums is to run:
>
>$ gcc -### -e -v -march=native /usr/include/stdlib.h
>
>The last line of output will include the various CFLAGS that
>-march=native picks.  In my case (Phenom II 955):
>
> "/usr/libexec/gcc/x86_64-pc-linux-gnu/4.4.5/cc1" "-quiet"
>"/usr/include/stdlib.h" "-D_FORTIFY_SOURCE=2" *"-march=amdfam10"
>"-mcx16" "-msahf" "-mpopcnt"* "--param" "l1-cache-size=64" "--param"
>"l1-cache-line-size=64" "--param" "l2-cache-size=512" "-mtune=amdfam10"
>"-quiet" "-dumpbase" "stdlib.h" "-auxbase" "stdlib" "-o"
>"/tmp/ccR1PlNZ.s" "--output-pch=/usr/include/stdlib.h.gch"
>
>I typically use -march=native when I don't need to worry about distcc,
>or the options from that output that start with "-m".

Hey, that's a nice trick! Thanks for re-sharing :)

That said, I usually *can't* use -march=native because all my Gentoo systems are virtualized servers, running on top of XenServer, which itself runs on heterogenous server boxes (all Intel).

So, I purposefully limit myself to "-march=nocona".

(I did raise an explicit point about -march parameter in my Gentoo-Wiki article)

Rgds,
--
FdS Pandu E Poluan
~ IT Optimizer ~

Sent from Nokia E72-1




^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2011-07-28 10:02 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-26 20:36 [gentoo-user] CFlags for CPU Alokat
2011-07-26 18:58 ` Michael Mol
2011-07-27  0:58   ` Bill Kenworthy
2011-07-27  3:08     ` [gentoo-user] " Nikos Chantziaras
2011-07-26 18:59 ` [gentoo-user] " Alan McKinnon
2011-07-26 18:59 ` Mark Knecht
2011-07-26 19:02 ` Paul Hartman
2011-07-26 22:01   ` Mick
2011-07-26 22:15     ` Paul Hartman
2011-07-26 19:22 ` pk
2011-07-27 14:09   ` Andy Wilkinson
2011-07-27 14:34     ` Kfir Lavi
2011-07-27 16:13       ` Kfir Lavi
2011-07-27 18:32         ` Mick
2011-07-27 20:24           ` Mark Knecht
2011-07-27 20:56             ` Mick
2011-07-27 21:11           ` pk
2011-07-28  9:40           ` Kfir Lavi
2011-07-28  9:46             ` Helmut Jarausch
2011-07-28  9:51               ` Kfir Lavi
2011-07-28 10:01                 ` Helmut Jarausch
  -- strict thread matches above, loose matches on Subject: below --
2011-07-27 14:52 Pandu Poluan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox