Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
CFLAGS and Core Duo
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
Darakian
n00b
n00b


Joined: 31 Mar 2006
Posts: 6

PostPosted: Fri Mar 31, 2006 4:16 am    Post subject: CFLAGS and Core Duo Reply with quote

After looking through what I could find on the forum and the documentation I am at a loss for what CFLAGs I should put in to the make.conf
I am tempted to put in
"-march=pentium-m"
However I am unsure of how much the core changed in the jump from dothan to yonah. Sorry if I am missing anything this is my first time installing gentoo.
Back to top
View user's profile Send private message
benster
n00b
n00b


Joined: 30 Nov 2005
Posts: 67
Location: Funkytown

PostPosted: Fri Mar 31, 2006 5:19 am    Post subject: Reply with quote

Just off the top of my head I seem to remember that for a Core Duo you want to add -march=nocona to your CFLAGS. At least for the desktop version, for Centrino I don't know.
Back to top
View user's profile Send private message
Keruskerfuerst
Advocate
Advocate


Joined: 01 Feb 2006
Posts: 2289
Location: near Augsburg, Germany

PostPosted: Fri Mar 31, 2006 8:39 am    Post subject: Reply with quote

What type of processor is Core Duo?
For desktop or for laptop use?
Back to top
View user's profile Send private message
benster
n00b
n00b


Joined: 30 Nov 2005
Posts: 67
Location: Funkytown

PostPosted: Fri Mar 31, 2006 1:58 pm    Post subject: Reply with quote

It's Intel's new dual core chip.

The Magic of Google reveals a result on Intel's page:
http://www.intel.com/products/processor/coreduo/

IIRC, they're based on Pentium-M which was much more power efficient than the P4s. There are mobile and desktop versions.
Back to top
View user's profile Send private message
Darakian
n00b
n00b


Joined: 31 Mar 2006
Posts: 6

PostPosted: Sat Apr 01, 2006 3:47 am    Post subject: Reply with quote

Bingo core duo = marketing slogan for the dual core mobile chip (32-bit mind you). The cores name is Yonah.
Back to top
View user's profile Send private message
robbster
n00b
n00b


Joined: 07 Apr 2006
Posts: 12
Location: Darmstadt, Germany

PostPosted: Fri Apr 07, 2006 5:07 pm    Post subject: Re: CFLAGS and Core Duo Reply with quote

Darakian wrote:

I am tempted to put in
"-march=pentium-m"


Just my question! Anyone a solution? :)
Back to top
View user's profile Send private message
digitalfrost
n00b
n00b


Joined: 08 Feb 2004
Posts: 8

PostPosted: Sun Apr 09, 2006 2:52 am    Post subject: Reply with quote

I have succesfully used -march=pentium-m -msse3 on my Thinkpad T60.
_________________
MSI K8N Neo2 Platinum 54G / Winchester 3200+ 2.5Ghz / 1GByte GSkill PC4400 275Mhz 2.5-3-3-7
IBM Thinkpad T60 2007-49G / 1.83Ghz Dual Core / 512MB PC667 / 60GB 5400rpm HDD / SXGA+ TFT
Back to top
View user's profile Send private message
robbster
n00b
n00b


Joined: 07 Apr 2006
Posts: 12
Location: Darmstadt, Germany

PostPosted: Wed Apr 12, 2006 1:26 pm    Post subject: Reply with quote

Yes, I did so, too and it seems to be stable.
Back to top
View user's profile Send private message
kfiaciarka
Veteran
Veteran


Joined: 20 May 2005
Posts: 1498
Location: Dobre Miasto, Poland

PostPosted: Wed Apr 12, 2006 8:45 pm    Post subject: Reply with quote

Intel Core Duo (Yonah)

Code:
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium-m -O2 -pipe -msse3 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"

according to http://gentoo-wiki.com/Safe_Cflags
Back to top
View user's profile Send private message
SMoo
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 140
Location: Leander, TX

PostPosted: Sat May 13, 2006 11:49 am    Post subject: Reply with quote

Sorry about rehashing this, but I thought someone might want to know what I've used successfully.
My make.conf:

CFLAGS="-march=pentium-m -O2 -pipe -msse3 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
USE="X qt gnome nptl -kde cdr dvd alsa wireless"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
Back to top
View user's profile Send private message
tjesis
n00b
n00b


Joined: 14 Jan 2005
Posts: 5
Location: Netherlands

PostPosted: Sat May 20, 2006 7:36 am    Post subject: pentium4m ?? Reply with quote

Hi all,

I also have a Intel Centrino Duo notebook. and have used the option "-march=pentium4m" succesfully.
My make.conf looks like this:
CFLAGS="-march=pentium4m -O2 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

Right now I'm in doubt which '-march' flag I should use.
Can somebody help me to clear things up?

Thanx!
_________________
Asus M2N-E, Athlon64 X2 3800+, 4Gb DDR2 667Mhz
1x SATA2 160Gb, 2x SATA2 80Gb in RAID0, 1x SATA 300Gb
Back to top
View user's profile Send private message
SMoo
Tux's lil' helper
Tux's lil' helper


Joined: 08 Jul 2004
Posts: 140
Location: Leander, TX

PostPosted: Sat May 20, 2006 1:23 pm    Post subject: Reply with quote

Quote:
MAKEOPTS="-j2"


You should use -j3 so that Gentoo will make use of both CPUs...
Back to top
View user's profile Send private message
tjesis
n00b
n00b


Joined: 14 Jan 2005
Posts: 5
Location: Netherlands

PostPosted: Tue May 23, 2006 4:21 pm    Post subject: Reply with quote

SMoo wrote:
Quote:
MAKEOPTS="-j2"


You should use -j3 so that Gentoo will make use of both CPUs...


Thanx!!!!
I changed the /etc/make.conf to reflect MAKEOPTS="-j3"
_________________
Asus M2N-E, Athlon64 X2 3800+, 4Gb DDR2 667Mhz
1x SATA2 160Gb, 2x SATA2 80Gb in RAID0, 1x SATA 300Gb
Back to top
View user's profile Send private message
bssteph
l33t
l33t


Joined: 26 Feb 2003
Posts: 651
Location: Wisconsin

PostPosted: Sat Jun 03, 2006 4:28 pm    Post subject: Re: pentium4m ?? Reply with quote

tjesis wrote:
Hi all,

I also have a Intel Centrino Duo notebook. and have used the option "-march=pentium4m" succesfully.
My make.conf looks like this:
CFLAGS="-march=pentium4m -O2 -pipe -msse3"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j2"

Right now I'm in doubt which '-march' flag I should use.
Can somebody help me to clear things up?

Thanx!

I'm not certain, but I'm pretty sure that "pentium4m" means the Pentium 4 M, which was just a standard P4 with SpeedStep (and, if the laptop I used to have is any indication, pretty cruddy SpeedStep at that). It predates the Pentium M line. You probably want to use pentium-m. I'm not sure if there's any difference as far as GCC is concerned though.
_________________
Website - All sorts of nonsense (some of it actually Linux related)
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sat Jun 03, 2006 9:15 pm    Post subject: Reply with quote

no, Core Duo is -march=prescott. it supports Prescott New Instructions but not EM64T.

pentium-m sets the architecture to Pentium Pro with support for MMX, SSE, and SSE2.
pentium4 sets the architecture to Pentium 4 with support for MMX, SSE, and SSE2.
pentium-4m is identical to pentium4. there is no difference whatsoever.
prescott sets the architecture to Nocona with support for MMX, SSE, SSE2, and SSE3.
nocona sets the architecture to Nocona with support for MMX, SSE, SSE2, SSE3, and EM64T.

Core Solo is -march=prescott. Core Duo is -march=prescott. Pentium D is -march=nocona. Core Solo/Duo 2 will be -march=nocona but also have SSE4 (mni) support. basically if you have pni in /proc/cpuinfo, use prescott. if you have pni and lm in /proc/cpuinfo, use nocona.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
P.Kosunen
Guru
Guru


Joined: 21 Nov 2005
Posts: 309
Location: Finland

PostPosted: Sun Jun 04, 2006 4:40 pm    Post subject: Reply with quote

Code:

vendor_id       : GenuineIntel
cpu family      : 6
model           : 14
model name      : Genuine Intel(R) CPU           T2300  @ 1.66GHz
stepping        : 8
cpu MHz         : 1660.000
cache size      : 2048 KB
physical id     : 0
siblings        : 2
core id         : 1
cpu cores       : 2
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
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 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe nx constant_tsc pni monitor vmx est tm2 xtpr
bogomips        : 3333.62


No sse3 here, are you sure prescott is correct?
Back to top
View user's profile Send private message
htranou
Tux's lil' helper
Tux's lil' helper


Joined: 08 May 2006
Posts: 96

PostPosted: Sun Jun 04, 2006 5:27 pm    Post subject: Reply with quote

pni = sse3

Prescott New instructions I think. Kernel people named it pni before marketing from Intel called it SSE3, and they decided not to change it.
Back to top
View user's profile Send private message
drsound
n00b
n00b


Joined: 20 Sep 2004
Posts: 10
Location: Italy

PostPosted: Sat Jul 01, 2006 2:58 pm    Post subject: Reply with quote

And what about kernel optimizations? I have an Intel Yonah dual core CPU (T2500): what should I choose as Processor type and features
/ Processor family
? Pentium-4/Celeron(P4-based)/Pentium-4 M/Xeon or Pentium M?

Moreover, is the dual core technically an hyperthreading or not? If so, should I choose SMT (Hyperthreading) scheduler support?
Back to top
View user's profile Send private message
slashdevslashtty
Tux's lil' helper
Tux's lil' helper


Joined: 29 Aug 2004
Posts: 119
Location: 97219

PostPosted: Sun Jul 02, 2006 6:35 am    Post subject: Reply with quote

drsound wrote:
Moreover, is the dual core technically an hyperthreading or not? If so, should I choose SMT (Hyperthreading) scheduler support?


Not hyperthreading. Just make sure SMP is enabled.
Back to top
View user's profile Send private message
scahrossar
n00b
n00b


Joined: 17 Mar 2005
Posts: 2
Location: Norway

PostPosted: Sun Jul 09, 2006 2:16 pm    Post subject: Confusing ... Reply with quote

From the GCC-manual:
pentium-m: Low power version of Intel Pentium3 CPU with MMX, SSE and SSE2 instruction set support. Used by Centrino notebooks.
prescott: Improved version of Intel Pentium4 CPU with MMX, SSE, SSE2 and SSE3 instruction set support.

Allright. The Prescott is a Pentium 4 CPU, the Core Duo is a Pentium-M.
"cat /proc/cpuinfo" reveals that it's related to the models in family 6(check out http://sandpile.org/ia32/cpuid.html to see all models in that family). In some way, it means, that the Core Duo(Yonah) actually is a modified Pentium 3 with SSE3/pni support. The closest GCC match is "-march=prescott", simply because it has support for SSE3/pni instruction set. However the system will then be optimized for a Pentium 4, which is a 7th Generation(80786) processor. It just have to be wrong. It seems a lot more logically to optimize for Pentium M(P3) with SSE3/pni support. What about these CFLAGS ?
Code:

CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Mon Jul 10, 2006 5:10 am    Post subject: Re: Confusing ... Reply with quote

scahrossar wrote:
"cat /proc/cpuinfo" reveals that it's related to the models in family 6(check out http://sandpile.org/ia32/cpuid.html to see all models in that family). In some way, it means, that the Core Duo(Yonah) actually is a modified Pentium 3 with SSE3/pni support. The closest GCC match is "-march=prescott", simply because it has support for SSE3/pni instruction set. However the system will then be optimized for a Pentium 4, which is a 7th Generation(80786) processor. It just have to be wrong. It seems a lot more logically to optimize for Pentium M(P3) with SSE3/pni support. What about these CFLAGS ?
Code:

CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer -mfpmath=sse -msse3"


You're right that the Core Duo is based on the Pentium-M microarch, but it's had some major updates done to it. Fex, the SSE front and backend are completely redone. On the P-M, it took twice as long to decode SSE than X87. Core can handle up to three packed and micro-op SSE instructions at once, making using SSE the advantage. However, when you set -march=pentium-m, GCC prefers to generate x87 instructions.

There's other changes that make Core more similar to Netburst than P-M when it comes to cost calculation, prefetch block size, etc., all of which are dependent on -march. Check out gcc/config/i386/i386.c and the IA32 Intel Architecture Optimization Reference Manual.
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
pactoo
Guru
Guru


Joined: 18 Jul 2004
Posts: 553

PostPosted: Mon Jul 10, 2006 2:08 pm    Post subject: Reply with quote

If prescottt is to prefer over pentium-m for cflags, what should I choose then for the kernel config? pentium-4 or still pentium-m? And does it make sense to also activate "check for P4 thermal throttling support" with core duo?
Back to top
View user's profile Send private message
rhill
Retired Dev
Retired Dev


Joined: 22 Oct 2004
Posts: 1629
Location: sk.ca

PostPosted: Sat Jul 15, 2006 3:40 am    Post subject: Reply with quote

pactoo wrote:
If prescottt is to prefer over pentium-m for cflags, what should I choose then for the kernel config? pentium-4 or still pentium-m? And does it make sense to also activate "check for P4 thermal throttling support" with core duo?


I'd choose pentium-4.

Core Solo/Duo supports both types of thermal monitoring, T1 and T2, preferring T2. See http://www.hardwaresecrets.com/article.php?cat=&id=104 for a quick explanation of what that means.

Ref: http://www.intel.com/design/mobile/datashts/309221.htm (Sec 2.2)
_________________
by design, by neglect
for a fact or just for effect
Back to top
View user's profile Send private message
ph03n1x
l33t
l33t


Joined: 06 Feb 2003
Posts: 756

PostPosted: Sun Jul 30, 2006 5:50 pm    Post subject: Reply with quote

Thx for all the infos guys ;-)
Back to top
View user's profile Send private message
Daemonax
Apprentice
Apprentice


Joined: 30 Apr 2004
Posts: 211

PostPosted: Sat Aug 12, 2006 6:44 am    Post subject: Reply with quote

This is great.

Thanks for all the info, looking at getting a core duo laptop this week, so I'll set cflags to prescott and the internal kernel processor option to Pentium-4 from what I can tell?

Hurray, looking forward to getting back in to Gentoo. :)
_________________
The God idea is growing more impersonal and nebulous in proportion as the human mind is learning to understand natural phenomena and in the degree that science progressively correlates human and social events. -- Emma Goldman
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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