* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
@ 2005-10-23 3:18 ` Peter Gordon
2005-10-23 3:27 ` Willie Wong
` (6 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Peter Gordon @ 2005-10-23 3:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 976 bytes --]
On Sun, 2005-10-23 at 01:31 +1000, Richard Watson wrote:
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
If you're using the the GCC from stable ("x86") portage (GCC 3.3), then
you should probably use something like:
CFLAGS="-O2 -march=pentium3 -msse2 -pipe"
GCC 3.4 (marked unstable, "~x86") makes it a little simple by adding
a Pentium-M specific architecture type:
CFLAGS="-O2 -march=pentium-m -pipe"
Although, on a laptop you might want to use "-Os" (size optimization)
in place of "-O2", as the disk is a lot slower than desktop machines
and you will probably have longer startup times for programs. I'm not
too sure on that last part, a I don't have a laptop, though. Anyone
else want to take a stab at that? :)
Hope that helps.
--Peter
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
2005-10-23 3:18 ` Peter Gordon
@ 2005-10-23 3:27 ` Willie Wong
2005-10-24 12:35 ` 赵光
2005-10-23 6:12 ` Renat Golubchyk
` (5 subsequent siblings)
7 siblings, 1 reply; 13+ messages in thread
From: Willie Wong @ 2005-10-23 3:27 UTC (permalink / raw
To: gentoo-user
On Sun, Oct 23, 2005 at 01:31:32AM +1000, Richard Watson wrote:
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
For my laptop with pentium M 1.6g, I set
CFLAGS="-O3 -march=pentium-m -pipe"
but you might want to keep -O2.... I run ~x86 on it as my testing box,
so I don't mind a little breakage here and there.
W
--
"When I say unbounded, I mean...not bounded."
~DeathMech, S. Sondhi. P-town PHY 205
Sortir en Pantoufles: up 19:33
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-23 3:27 ` Willie Wong
@ 2005-10-24 12:35 ` 赵光
0 siblings, 0 replies; 13+ messages in thread
From: 赵光 @ 2005-10-24 12:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 848 bytes --]
CFLAGS="-O3 -march=pentium-m -pipe"
i prefer this
2005/10/23, Willie Wong <wwong@princeton.edu>:
>
> On Sun, Oct 23, 2005 at 01:31:32AM +1000, Richard Watson wrote:
> > I've just got a new laptop I'm installing Gentoo on and was wondering if
> > anyone could advise on the CFLAG setting I'm using. The CPU is a
> > Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> > CFLAGS="-02 -mcpu=pentium -pipe"
>
> For my laptop with pentium M 1.6g, I set
>
> CFLAGS="-O3 -march=pentium-m -pipe"
>
> but you might want to keep -O2.... I run ~x86 on it as my testing box,
> so I don't mind a little breakage here and there.
>
> W
>
> --
> "When I say unbounded, I mean...not bounded."
> ~DeathMech, S. Sondhi. P-town PHY 205
> Sortir en Pantoufles: up 19:33
> --
> gentoo-user@gentoo.org mailing list
>
>
[-- Attachment #2: Type: text/html, Size: 1201 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
2005-10-23 3:18 ` Peter Gordon
2005-10-23 3:27 ` Willie Wong
@ 2005-10-23 6:12 ` Renat Golubchyk
2005-10-23 7:11 ` Richard Fish
` (4 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Renat Golubchyk @ 2005-10-23 6:12 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 676 bytes --]
Hi!
On Sun, 23 Oct 2005 01:31:32 +1000 Richard Watson <waty@bigpond.net.au>
wrote:
> I've just got a new laptop I'm installing Gentoo on and was wondering
> if anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've
> set CFLAGS="-02 -mcpu=pentium -pipe"
Use "-mcpu=pentium-m" for a Pentium-M CPU. (BTW, -mcpu is deprecated in
favor of -mtune.)
I use CFLAGS="-march=pentium-m -O2 -pipe -fomit-frame-pointer".
Cheers,
Renat
--
Probleme kann man niemals mit derselben Denkweise loesen,
durch die sie entstanden sind.
(Einstein)
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
` (2 preceding siblings ...)
2005-10-23 6:12 ` Renat Golubchyk
@ 2005-10-23 7:11 ` Richard Fish
2005-10-23 11:26 ` [gentoo-user] " Jochen Schalanda
` (3 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Richard Fish @ 2005-10-23 7:11 UTC (permalink / raw
To: gentoo-user
Richard Watson wrote:
>I've just got a new laptop I'm installing Gentoo on and was wondering if
>anyone could advise on the CFLAG setting I'm using. The CPU is a
>Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
>CFLAGS="-02 -mcpu=pentium -pipe"
>
>
With a 2.13Ghz pentium-m, I am using:
CFLAGS="-march=pentium-m -Os -fomit-frame-pointer -pipe"
I recommend using either -Os or -O3 with the pentium-m. In my
experience, -Os and -O3 provide slightly better overall performance than
-O2, although I should mention a few things will probably run slower.
As far as mmx, sse, and the like, I'd say enable those through USE flags
for those packages that support them.
Also, be sure you are using the latest version (3.4.4) of gcc by running
"gcc-config -l".
-Richard
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* [gentoo-user] Re: CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
` (3 preceding siblings ...)
2005-10-23 7:11 ` Richard Fish
@ 2005-10-23 11:26 ` Jochen Schalanda
2005-10-23 17:26 ` [gentoo-user] " Bill Roberts
` (2 subsequent siblings)
7 siblings, 0 replies; 13+ messages in thread
From: Jochen Schalanda @ 2005-10-23 11:26 UTC (permalink / raw
To: gentoo-user
On 10/22/2005 05:31 PM, Richard Watson wrote:
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
Honestly, did these CFLAGS ever work? I don't think GCC knows something
about a parameter called -02.
Anyway, I'm using CFLAGS="-O2 -march=pentium-m -pipe" on my Centrino
laptop for about 2 years now without problems. The architecture
pentium-m is available from GCC 3.4 on. GCC 3.3 doesn't support it. If
you use GCC 3.3.x, you should set CFLAGS="-O2 -march=pentium3 -pipe".
You should also take a look at [1] and [2].
[1]: http://gentoo-wiki.com/CFLAGS
[2]: http://gentoo-wiki.com/Safe_Cflags
--
Regards
Jochen
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
` (4 preceding siblings ...)
2005-10-23 11:26 ` [gentoo-user] " Jochen Schalanda
@ 2005-10-23 17:26 ` Bill Roberts
2005-10-24 8:00 ` Octavio Ruiz (Ta^3)
` (2 more replies)
2005-10-23 20:02 ` Sascha Lucas
2005-10-24 2:35 ` Walter Dnes
7 siblings, 3 replies; 13+ messages in thread
From: Bill Roberts @ 2005-10-23 17:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 483 bytes --]
On 01:31 Sun 23 Oct , Richard Watson wrote:
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
> --
> Thanks, Richard
>
> --
> gentoo-user@gentoo.org mailing list
>
I have:
CFLAGS="-02 -march=pentium4"
Seems to work nicely on my M processor.
Bill Roberts
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-23 17:26 ` [gentoo-user] " Bill Roberts
@ 2005-10-24 8:00 ` Octavio Ruiz (Ta^3)
2005-10-24 12:09 ` Qian Qiao
2005-10-24 16:26 ` Rafael Fernández López
2 siblings, 0 replies; 13+ messages in thread
From: Octavio Ruiz (Ta^3) @ 2005-10-24 8:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 700 bytes --]
Bill Roberts, who happens to be smarter than you, thinks:
> On 01:31 Sun 23 Oct , Richard Watson wrote:
> > I've just got a new laptop I'm installing Gentoo on and was wondering if
> > anyone could advise on the CFLAG setting I'm using. The CPU is a
> > Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> > CFLAGS="-02 -mcpu=pentium -pipe"
> > --
> > Thanks, Richard
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> I have:
>
> CFLAGS="-02 -march=pentium4"
That's right, for "Dothan" processors, 'pentium4m' or 'pentium4' should be
used. 'pentium-m' and 'pentium3'+sse2 are for old centrino processors.
:-)
--
Ego sum ens omnipotens.
[-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-23 17:26 ` [gentoo-user] " Bill Roberts
2005-10-24 8:00 ` Octavio Ruiz (Ta^3)
@ 2005-10-24 12:09 ` Qian Qiao
2005-10-24 16:26 ` Rafael Fernández López
2 siblings, 0 replies; 13+ messages in thread
From: Qian Qiao @ 2005-10-24 12:09 UTC (permalink / raw
To: gentoo-user
On 10/23/05, Bill Roberts <billbalt@eyeofthequark.com> wrote:
> On 01:31 Sun 23 Oct , Richard Watson wrote:
> > I've just got a new laptop I'm installing Gentoo on and was wondering if
> > anyone could advise on the CFLAG setting I'm using. The CPU is a
> > Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> > CFLAGS="-02 -mcpu=pentium -pipe"
> > --
> > Thanks, Richard
> >
> > --
> > gentoo-user@gentoo.org mailing list
> >
> I have:
>
> CFLAGS="-02 -march=pentium4"
>
> Seems to work nicely on my M processor.
>
Are you sure -02 works? :P
-- Joe
--
There are 3 kinds of people in the world:
Those who can count, and those who can't.
Money can't buy everything.
Sometimes money can't even buy a gun...
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-23 17:26 ` [gentoo-user] " Bill Roberts
2005-10-24 8:00 ` Octavio Ruiz (Ta^3)
2005-10-24 12:09 ` Qian Qiao
@ 2005-10-24 16:26 ` Rafael Fernández López
2 siblings, 0 replies; 13+ messages in thread
From: Rafael Fernández López @ 2005-10-24 16:26 UTC (permalink / raw
To: gentoo-user
> On 01:31 Sun 23 Oct , Richard Watson wrote:
>> I've just got a new laptop I'm installing Gentoo on and was wondering if
>> anyone could advise on the CFLAG setting I'm using. The CPU is a
>> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
>> CFLAGS="-02 -mcpu=pentium -pipe"
>> --
>> Thanks, Richard
>>
>> --
>> gentoo-user@gentoo.org mailing list
>>
> I have:
>
> CFLAGS="-02 -march=pentium4"
>
> Seems to work nicely on my M processor.
>
> Bill Roberts
>
I have CFLAGS="-O3 -mtune=pentium-m"
This boosts the computer at the maximum level !!
Bye,
Rafael Fernández López.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
` (5 preceding siblings ...)
2005-10-23 17:26 ` [gentoo-user] " Bill Roberts
@ 2005-10-23 20:02 ` Sascha Lucas
2005-10-24 2:35 ` Walter Dnes
7 siblings, 0 replies; 13+ messages in thread
From: Sascha Lucas @ 2005-10-23 20:02 UTC (permalink / raw
To: gentoo-user
Hi Richard,
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
You may look at http://gentoo-wiki.com/Safe_Cflags#Pentium-M_.2F_Centrino_.28Intel.29
If you use x86 (not ~x86) then you have a gcc < 3.4.3. The page above
proposes to use: CFLAGS="-O2 -march=pentium3 -pipe". A friend of mine with
a Pentium M uses CFLAGS="-O2 -march=pentium4 -pipe -fomit-frame-pointer",
which is dangerous if you believe the wiki-page.
If you plan to use gentoo on many x86 systems with different CPU's and you
want to share binarys. I recommend to use: CFLAGS="-O2 -march=i686
-fomit-frame-pointer -pipe" (runs on any Intel/AMD/... starting from
Pentium2-class CPU).
Sascha.
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08
2005-10-22 15:31 [gentoo-user] CFLAGS setting for Intel(R) Pentium(R) M processor 1.73GHZ stepping 08 Richard Watson
` (6 preceding siblings ...)
2005-10-23 20:02 ` Sascha Lucas
@ 2005-10-24 2:35 ` Walter Dnes
7 siblings, 0 replies; 13+ messages in thread
From: Walter Dnes @ 2005-10-24 2:35 UTC (permalink / raw
To: gentoo-user
On Sun, Oct 23, 2005 at 01:31:32AM +1000, Richard Watson wrote
> I've just got a new laptop I'm installing Gentoo on and was wondering if
> anyone could advise on the CFLAG setting I'm using. The CPU is a
> Intel(R) Pentium(R) M processor 1.73GHZ stepping 08. Currently I've set
> CFLAGS="-02 -mcpu=pentium -pipe"
Boot that machine with any linux distro, install CD, rescue CD,
whatever, and issue the command...
cat /proc/cpuinfo
Post the output here and we can help you, and you can learn how to help
yourself in future. The "flags" line is the most useful portion of the
output.
--
Walter Dnes <waltdnes@waltdnes.org> In linux /sbin/init is Job #1
My musings on technology and security at http://tech_sec.blog.ca
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 13+ messages in thread