View previous topic :: View next topic |
Author |
Message |
edudlive Guru
Joined: 06 Jan 2004 Posts: 557
|
Posted: Mon May 31, 2004 6:40 pm Post subject: cflags for pentium m |
|
|
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 |
|
|
po0f Apprentice
Joined: 08 Apr 2004 Posts: 162
|
Posted: Mon May 31, 2004 6:54 pm Post subject: |
|
|
i686
Intel's website says that Pentium M chips are "based on an architecture designed specifically for mobile computing." |
|
Back to top |
|
|
edudlive Guru
Joined: 06 Jan 2004 Posts: 557
|
Posted: Mon May 31, 2004 6:59 pm Post subject: |
|
|
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 |
|
|
nixnut Bodhisattva
Joined: 09 Apr 2004 Posts: 10974 Location: the dutch mountains
|
Posted: Mon May 31, 2004 7:02 pm Post subject: |
|
|
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 |
|
|
po0f Apprentice
Joined: 08 Apr 2004 Posts: 162
|
Posted: Mon May 31, 2004 7:06 pm Post subject: |
|
|
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 |
|
|
edudlive Guru
Joined: 06 Jan 2004 Posts: 557
|
Posted: Mon May 31, 2004 9:08 pm Post subject: |
|
|
I'm trying to customize it quite a bit, shouldn't I call it as a P-4? |
|
Back to top |
|
|
edudlive Guru
Joined: 06 Jan 2004 Posts: 557
|
Posted: Mon May 31, 2004 9:36 pm Post subject: |
|
|
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 |
|
|
monkey89 Guru
Joined: 08 Mar 2004 Posts: 596
|
Posted: Mon May 31, 2004 9:43 pm Post subject: |
|
|
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 |
|
|
edudlive Guru
Joined: 06 Jan 2004 Posts: 557
|
Posted: Mon May 31, 2004 9:44 pm Post subject: |
|
|
dont i need to add support for sse2 though? |
|
Back to top |
|
|
rootkit n00b
Joined: 16 Aug 2003 Posts: 50 Location: Washington, USA
|
Posted: Tue Jun 01, 2004 2:22 am Post subject: |
|
|
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 |
|
|
cyrillic Watchman
Joined: 19 Feb 2003 Posts: 7313 Location: Groton, Massachusetts USA
|
Posted: Tue Jun 01, 2004 2:42 am Post subject: |
|
|
Look at
Code: | # cat /proc/cpuinfo |
If your CPU supports SSE2 instructions, then you can use -march=pentium4 |
|
Back to top |
|
|
tseng Retired Dev
Joined: 02 Aug 2003 Posts: 33 Location: York, Pa.
|
Posted: Sat Jun 19, 2004 2:45 pm Post subject: not really.. |
|
|
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 |
|
|
mooerito Apprentice
Joined: 16 Dec 2003 Posts: 187 Location: Zurich/Switzerland
|
Posted: Sat Jun 19, 2004 3:33 pm Post subject: |
|
|
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 |
|
|
xces Guru
Joined: 11 Oct 2002 Posts: 515
|
Posted: Sat Jun 19, 2004 4:06 pm Post subject: |
|
|
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 |
|
|
duderonomy Guru
Joined: 20 Mar 2004 Posts: 349 Location: SF Bay Area
|
Posted: Mon Jun 21, 2004 9:19 am Post subject: |
|
|
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 |
|
|
|