Re: [gentoo-user] Motherboard/CPU upgrade

2005-09-17 Thread Chris White
On Saturday 17 September 2005 16:32, Dan Johansson wrote:
> Hi,
>
> A few days ago I had to replace my Motherboard and CPU. Now I want to make
> use of the new CPUs features.
> Old CPU: Intel Pentium 4
> New CPU: Intel Pentium 4 (Prescott)

ok, remember though, new Motherboard is usually = new IDE controller, new PCI 
stuff, etc.  Don't forget your kernel too!

>   flags   : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge 
> mca
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni
> monitor ds_cpl est cid cx16 xtpr
>   bogomips: 6340.60

cpu flags here

> So I'm planning to do something along these lines:
>
> 1)Change CFLAGS in make.conf
>   Old: CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer
> -pipe" New: CFLAGS="-O2 -march=prescott -mmmx -msse -msse2 --pipe
> -fomit-frame-pointer"

Bad, -march=prescott by itself implies this when passed to gcc:

options passed:  -v -march=prescott -auxbase
options enabled:  -feliminate-unused-debug-types -fpeephole -ffunction-cse
 -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm -fgcse-las
 -fsched-interblock -fsched-spec -fsched-stalled-insns
 -fsched-stalled-insns-dep -fbranch-count-reg -fcommon -fargument-alias
 -fzero-initialized-in-bss -fident -fmath-errno -ftrapping-math -m80387
 -mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387
 -maccumulate-outgoing-args -mmmx -msse -msse2 -msse3 -mno-red-zone
 -mtls-direct-seg-refs -mtune=prescott -march=prescott
 main

New: CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"

is enough.

> 2)emerge --emptytree system
> 3)emerge --emptytree world

system is part of world.  When you do `emerge system` at the beginning, all 
system packages are added to world.  I'd say:

`emerge -ev world`

to see what will go down and then

`emerge -e world`

to actually emerge the stuff.

> Would that be the right CFLAGS for this CPU? And would it be the right
> procedure to get my system "up to date" with my new CPU?

Pretty much.

Chris White


pgpNEyIgxBLpH.pgp
Description: PGP signature


Re: [gentoo-user] Motherboard/CPU upgrade

2005-09-17 Thread Walter Dnes
On Sun, Sep 18, 2005 at 01:36:59AM +0900, Chris White wrote

> New: CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
> 
> is enough.

  Don't forget "-mfpmath=sse"

-- 
Walter Dnes <[EMAIL PROTECTED]>
My musings on technology and security at http://tech_sec.blog.ca
-- 
gentoo-user@gentoo.org mailing list



Re: [gentoo-user] Motherboard/CPU upgrade

2005-09-18 Thread Dan Johansson
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Sun, September 18, 2005 06:52, Walter Dnes wrote:
> On Sun, Sep 18, 2005 at 01:36:59AM +0900, Chris White wrote
>
>> New: CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer"
>>
>> is enough.
>
>   Don't forget "-mfpmath=sse"

Thanks for the input, i'll go for
CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer -mfpmath=sse

Regards,
- --Dan

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)

iD4DBQFDLWwKF+s3Ki+4lK0RApP5AJjmt4d0piwDM6kWSyuwJclRP0T4AJ9aJUsr
ORhUhmQk3RKQbagPrfb1oA==
=yFhj
-END PGP SIGNATURE-

-- 
gentoo-user@gentoo.org mailing list