1 |
On Saturday 17 September 2005 16:32, Dan Johansson wrote: |
2 |
> Hi, |
3 |
> |
4 |
> A few days ago I had to replace my Motherboard and CPU. Now I want to make |
5 |
> use of the new CPUs features. |
6 |
> Old CPU: Intel Pentium 4 |
7 |
> New CPU: Intel Pentium 4 (Prescott) |
8 |
|
9 |
ok, remember though, new Motherboard is usually = new IDE controller, new PCI |
10 |
stuff, etc. Don't forget your kernel too! |
11 |
|
12 |
> flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca |
13 |
> cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe lm pni |
14 |
> monitor ds_cpl est cid cx16 xtpr |
15 |
> bogomips : 6340.60 |
16 |
|
17 |
cpu flags here |
18 |
|
19 |
> So I'm planning to do something along these lines: |
20 |
> |
21 |
> 1) Change CFLAGS in make.conf |
22 |
> Old: CFLAGS="-O2 -mcpu=pentium4 -march=pentium4 -fomit-frame-pointer |
23 |
> -pipe" New: CFLAGS="-O2 -march=prescott -mmmx -msse -msse2 --pipe |
24 |
> -fomit-frame-pointer" |
25 |
|
26 |
Bad, -march=prescott by itself implies this when passed to gcc: |
27 |
|
28 |
options passed: -v -march=prescott -auxbase |
29 |
options enabled: -feliminate-unused-debug-types -fpeephole -ffunction-cse |
30 |
-fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm -fgcse-las |
31 |
-fsched-interblock -fsched-spec -fsched-stalled-insns |
32 |
-fsched-stalled-insns-dep -fbranch-count-reg -fcommon -fargument-alias |
33 |
-fzero-initialized-in-bss -fident -fmath-errno -ftrapping-math -m80387 |
34 |
-mhard-float -mno-soft-float -mieee-fp -mfp-ret-in-387 |
35 |
-maccumulate-outgoing-args -mmmx -msse -msse2 -msse3 -mno-red-zone |
36 |
-mtls-direct-seg-refs -mtune=prescott -march=prescott |
37 |
main |
38 |
|
39 |
New: CFLAGS="-O2 -march=prescott -pipe -fomit-frame-pointer" |
40 |
|
41 |
is enough. |
42 |
|
43 |
> 2) emerge --emptytree system |
44 |
> 3) emerge --emptytree world |
45 |
|
46 |
system is part of world. When you do `emerge system` at the beginning, all |
47 |
system packages are added to world. I'd say: |
48 |
|
49 |
`emerge -ev world` |
50 |
|
51 |
to see what will go down and then |
52 |
|
53 |
`emerge -e world` |
54 |
|
55 |
to actually emerge the stuff. |
56 |
|
57 |
> Would that be the right CFLAGS for this CPU? And would it be the right |
58 |
> procedure to get my system "up to date" with my new CPU? |
59 |
|
60 |
Pretty much. |
61 |
|
62 |
Chris White |