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

Attachment: pgpNEyIgxBLpH.pgp
Description: PGP signature

Reply via email to