Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
centrino laptop - what arch / cflags to chose?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
paras
n00b
n00b


Joined: 28 Mar 2004
Posts: 5

PostPosted: Fri Apr 30, 2004 11:03 am    Post subject: centrino laptop - what arch / cflags to chose? Reply with quote

in kernelconfig:
pentium m or pentium4?

cflags:
--march=pentium4?

thanks in advance
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Fri Apr 30, 2004 11:36 am    Post subject: Reply with quote

pentium is for original pentiums, use pentium4. btw, there is only one dash: "-march=pentium4"
Back to top
View user's profile Send private message
brodo
Guru
Guru


Joined: 15 Apr 2003
Posts: 319

PostPosted: Fri Apr 30, 2004 1:55 pm    Post subject: Re: centrino laptop - what arch / cflags to chose? Reply with quote

paras wrote:
in kernelconfig:
pentium m or pentium4?

pentium m. The processor which is part of the centrino technology is named "Pentium M"


paras wrote:

cflags:
--march=pentium4?


-march=pentium3. The Pentium M is built on top of the pentium 3 architecture; pentium 4 is different.
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Fri Apr 30, 2004 2:01 pm    Post subject: Reply with quote

These are my CFLAGS for my centrino laptop
Code:
CFLAGS="-Os -march=pentium3 -pipe -frename-registers -fomit-frame-pointer -s -falign-functions=64"

and so far I haven't noticed any problems.
Back to top
View user's profile Send private message
deprecated
Tux's lil' helper
Tux's lil' helper


Joined: 21 Aug 2002
Posts: 118
Location: Madison, WI

PostPosted: Fri Apr 30, 2004 3:03 pm    Post subject: Reply with quote

Voltage you forgot -msse2 in your CFlags. The Pentium M may be closer to a P3 than a P4, but it does have sse2 support, and you definitely want that included.

If you use the -march=pentium4 option, sse2 support is included by default.


--Dep
_________________
Communication is easier when everyone agrees on the medium. Please use proper English and refrain from using shorthand!
Back to top
View user's profile Send private message
jkt
Retired Dev
Retired Dev


Joined: 06 Feb 2004
Posts: 1250
Location: Prague, Czech republic, EU

PostPosted: Fri Apr 30, 2004 6:28 pm    Post subject: Reply with quote

sorry, Im totaly blind :-(, I haven't seen the "M" letter :-((
Back to top
View user's profile Send private message
thundersteele
Apprentice
Apprentice


Joined: 30 Aug 2003
Posts: 219

PostPosted: Fri Apr 30, 2004 7:11 pm    Post subject: Reply with quote

I am running happily with the following flags:

"-march=pentium4 -O3 -fomit-frame-pointer -pipe"

nothing else. P4 flag didn't make any problems so far. Of course you should choose Pentium M in your Kernel, the Centrino CPU is simply an Pentium M.
Back to top
View user's profile Send private message
jcmorris
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 174

PostPosted: Fri Apr 30, 2004 8:37 pm    Post subject: Reply with quote

Quote:
I am running happily with the following flags:

"-march=pentium4 -O3 -fomit-frame-pointer -pipe"

nothing else. P4 flag didn't make any problems so far. Of course you should choose Pentium M in your Kernel, the Centrino CPU is simply an Pentium M.


Of course you will run happily with that, except the timing will be non-optimal. What people don't realize is that the P4 "netburst" stuff is a totally different beast from anything Intel produced before. A lot of things that were optimal for a Pentium II/III ran poorly on the P4 because of extra internal shifts and extra things that needed to go on within the P4 core during execution. When the Centrino was developed, Intel's Israeli team took the blueprints of the PentiumPro (PII and PIII), and modified it. The Centrino responds better to PIII timing than with the Pentium 4. DON'T USE PENTIUM 4 TIMING ON A PENTIUM-PRO CORE.

jcm
_________________
Desktop:
Athlon64 3000+ (Socket 939 Venice)
Asus A8N-SLI
1GB Dual-Channel DDR 3200
NVidia Geforce 6800 256MB

Laptop:
IBM R40
Pentium M 1.4 GHz
256 MB RAM
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Fri Apr 30, 2004 9:52 pm    Post subject: Reply with quote

deprecated wrote:
Voltage you forgot -msse2 in your CFlags. The Pentium M may be closer to a P3 than a P4, but it does have sse2 support, and you definitely want that included.

Whoops, sounds like I've some serious recompiling to do... thanks, I didn't know this...
Back to top
View user's profile Send private message
mooerito
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 187
Location: Zurich/Switzerland

PostPosted: Sat May 01, 2004 12:52 pm    Post subject: Reply with quote

i had march=pentium4 before and i had some serious problems (specially with power manaagement and other hardware related stuff), after i stepped back to pentium3 it was ok. my current flags are
Code:
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"

so far everything is running snooth. but i will add the msse2 stuff now, didnt have that before.

afaik with gcc3.4 there will be a march=pentiumM. can somebody with more compilerknowldge than me confirm that?
Back to top
View user's profile Send private message
jcmorris
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 174

PostPosted: Sat May 01, 2004 2:16 pm    Post subject: Reply with quote

According the to the documentation, it should have -march=pentium-m. You know, GCC-3.4 stable is out now, I need to build this :)

jcm
_________________
Desktop:
Athlon64 3000+ (Socket 939 Venice)
Asus A8N-SLI
1GB Dual-Channel DDR 3200
NVidia Geforce 6800 256MB

Laptop:
IBM R40
Pentium M 1.4 GHz
256 MB RAM
Back to top
View user's profile Send private message
forceflow2
Guru
Guru


Joined: 16 Apr 2003
Posts: 464
Location: South Carolina

PostPosted: Sat May 01, 2004 3:01 pm    Post subject: Reply with quote

Already tried it, doesn't seem to work
_________________
That rank under my username doesn't mean I know everything, it just means I ask a lot of questions.
Back to top
View user's profile Send private message
paras
n00b
n00b


Joined: 28 Mar 2004
Posts: 5

PostPosted: Sat May 01, 2004 5:56 pm    Post subject: Reply with quote

hm, so -march=pentium-m doesn't work yet?

OK, I'll go for "-march=pentium3 -O2 -msse2 -fomit-frame-pointer -pipe" then, i need a stable system :wink:

Thank you all.
Back to top
View user's profile Send private message
thundersteele
Apprentice
Apprentice


Joined: 30 Aug 2003
Posts: 219

PostPosted: Sat May 01, 2004 7:37 pm    Post subject: Reply with quote

According to gcc-3.4 manual, there is no such cpu-ype supported.

http://gcc.gnu.org/onlinedocs/gcc-3.4.0/gcc/i386-and-x86-64-Options.html#i386%20and%20x86-64%20Options

Only pentium3 and pentium4 are valid options for -march=cpu-type (of course there are others, but nothing for Pentium M).
Back to top
View user's profile Send private message
jcmorris
Apprentice
Apprentice


Joined: 11 Jun 2003
Posts: 174

PostPosted: Sun May 02, 2004 12:54 am    Post subject: Reply with quote

Sorry guys, I was reading the test version of the gcc docs :oops:

jcm
_________________
Desktop:
Athlon64 3000+ (Socket 939 Venice)
Asus A8N-SLI
1GB Dual-Channel DDR 3200
NVidia Geforce 6800 256MB

Laptop:
IBM R40
Pentium M 1.4 GHz
256 MB RAM
Back to top
View user's profile Send private message
mooerito
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 187
Location: Zurich/Switzerland

PostPosted: Thu May 13, 2004 8:33 am    Post subject: Reply with quote

i added the -msse2 flag to my config and yesterday i was getting floatin point exceptions when using python. when i took away the flags and recompiled the numarray lib everything was runnig smooth again. so there might be still some trouble using those flags, i think ill leave them off for the time being.

Last edited by mooerito on Thu May 13, 2004 9:57 am; edited 1 time in total
Back to top
View user's profile Send private message
Voltago
Advocate
Advocate


Joined: 02 Sep 2003
Posts: 2593
Location: userland

PostPosted: Thu May 13, 2004 9:42 am    Post subject: Reply with quote

Mooerito, did you use -march=pentium3?
And doesn't -march=pentium3 imply -mmmx? In that case, the -msse2 flag alone would be to blame.
Back to top
View user's profile Send private message
mooerito
Apprentice
Apprentice


Joined: 16 Dec 2003
Posts: 187
Location: Zurich/Switzerland

PostPosted: Thu May 13, 2004 9:56 am    Post subject: Reply with quote

ok youre right there (i used pentium3). i forgot about mmmx being already included in march=pentium3
i just corrected my post up there.
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
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