Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
cflags for pentium m
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
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Mon May 31, 2004 6:40 pm    Post subject: cflags for pentium m Reply with quote

I'm installing Gentoo on my Dell Inspiron 600m. I'm at the point where I'm picking my stage and I dont know which to pick.

The choices:

athlon-xp
i686
pentium3
pentium4
x86

Now I know it wont be Pentium3 or ahtlon-xp, but what do I choose for a Pentium-M?


EDIT: SEE LAST POST BY ME


Last edited by edudlive on Mon May 31, 2004 9:35 pm; edited 1 time in total
Back to top
View user's profile Send private message
po0f
Apprentice
Apprentice


Joined: 08 Apr 2004
Posts: 162

PostPosted: Mon May 31, 2004 6:54 pm    Post subject: Reply with quote

i686

Intel's website says that Pentium M chips are "based on an architecture designed specifically for mobile computing."
Back to top
View user's profile Send private message
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Mon May 31, 2004 6:59 pm    Post subject: Reply with quote

While I have a thread already, does anyone have any info or links for optimizations (in gentoo) for a Pentium-M (or even better for centrino laptops altogether)?

Especially the CFLAGS and etc in make.conf
Back to top
View user's profile Send private message
nixnut
Bodhisattva
Bodhisattva


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

PostPosted: Mon May 31, 2004 7:02 pm    Post subject: Reply with quote

edudlive wrote:
While I have a thread already, does anyone have any info or links for optimizations (in gentoo) for a Pentium-M (or even better for centrino laptops altogether)?

Especially the CFLAGS and etc in make.conf

Try searching the forums. I've seen a number of threads from people that also have a dell 600m.
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered

talk is cheap. supply exceeds demand
Back to top
View user's profile Send private message
po0f
Apprentice
Apprentice


Joined: 08 Apr 2004
Posts: 162

PostPosted: Mon May 31, 2004 7:06 pm    Post subject: Reply with quote

For installation, the default CFLAGS should be sufficient.

My CFLAGS:
CFLAGS="-O2 -march=i686 -fomit-frame-pointer -pipe"

Note: That is a capital O, not a zero (0).

Edit: spelling
Back to top
View user's profile Send private message
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Mon May 31, 2004 9:08 pm    Post subject: Reply with quote

I'm trying to customize it quite a bit, shouldn't I call it as a P-4?
Back to top
View user's profile Send private message
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Mon May 31, 2004 9:36 pm    Post subject: Reply with quote

CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -msse2"

How do those look for a Pentium-m?
Back to top
View user's profile Send private message
monkey89
Guru
Guru


Joined: 08 Mar 2004
Posts: 596

PostPosted: Mon May 31, 2004 9:43 pm    Post subject: Reply with quote

edudlive wrote:
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64 -msse2"

How do those look for a Pentium-m?


Seem a little aggressive to me, and I've only seen things break with that. An -O2 -march=pentium3 -pipe -fomit-frame-pointer would probably get roughly the same performance as that with much less chance of things not compiling.

-Monkey
Back to top
View user's profile Send private message
edudlive
Guru
Guru


Joined: 06 Jan 2004
Posts: 557

PostPosted: Mon May 31, 2004 9:44 pm    Post subject: Reply with quote

dont i need to add support for sse2 though?
Back to top
View user's profile Send private message
rootkit
n00b
n00b


Joined: 16 Aug 2003
Posts: 50
Location: Washington, USA

PostPosted: Tue Jun 01, 2004 2:22 am    Post subject: Reply with quote

If you read "man gcc" it will tell which optimizations are included at each level: -O -O1 -O2 -O3 -Os etc.
I like to read man pages in Konqueror by typing "man:gcc". :)
Back to top
View user's profile Send private message
cyrillic
Watchman
Watchman


Joined: 19 Feb 2003
Posts: 7313
Location: Groton, Massachusetts USA

PostPosted: Tue Jun 01, 2004 2:42 am    Post subject: Reply with quote

Look at
Code:
# cat /proc/cpuinfo

If your CPU supports SSE2 instructions, then you can use -march=pentium4
Back to top
View user's profile Send private message
tseng
Retired Dev
Retired Dev


Joined: 02 Aug 2003
Posts: 33
Location: York, Pa.

PostPosted: Sat Jun 19, 2004 2:45 pm    Post subject: not really.. Reply with quote

The core of the Pentium-M cpu is closer to the Pentium 3 wrt timings,
P4 has a much longer pipeline. It does indeed have added sse2 instructions, howerver.
I use CFLAGS="-O2 -march=pentium3 -msse2 -fomit-frame-pointer -pipe"
Back to top
View user's profile Send private message
mooerito
Apprentice
Apprentice


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

PostPosted: Sat Jun 19, 2004 3:33 pm    Post subject: Reply with quote

im using
Code:
CFLAGS="-O2 -march=pentium3 -pipe -fomit-frame-pointer -fforce-addr -frename-registers -fprefetch-loop-arrays -falign-functions=64"


i also used -msse2 before, but then i had prolems with gtk and stuff like that, since i removed the -msse2 everything works fine egain.
Back to top
View user's profile Send private message
xces
Guru
Guru


Joined: 11 Oct 2002
Posts: 515

PostPosted: Sat Jun 19, 2004 4:06 pm    Post subject: Reply with quote

You should consider using GCC 3.4 when you install Gentoo the first time. It is quite stable meanwhile and I had no problems with packages which didn't compile.
GCC 3.4 supports pentium-m as architecture, which will probably give you a speedboost over pentium3 or pentium4.
Back to top
View user's profile Send private message
duderonomy
Guru
Guru


Joined: 20 Mar 2004
Posts: 349
Location: SF Bay Area

PostPosted: Mon Jun 21, 2004 9:19 am    Post subject: Reply with quote

Hi Folks,

As another poster mentioned, the "-On" flags are like aliases or
expansion macros representing many individual CPU optimization
flags...

My question... I have seen many reports where a particular package
did not compile because the "-fomit-frame-pointer" was used. And, IIRC,
the -O2 optimization includes the "-fomit-frame-pointer" where
necessary
. (For example it may be or not be necessary in apps or
libs, I forget which)

Thoughts?
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