1 |
Am Samstag, 16. Oktober 2004 23:00 schrieb DonAnde: |
2 |
> Ich spiele natürlich auf OpenOffice an. |
3 |
|
4 |
Grade bei OpenOffice habe ich bemerkt, dass eine lokal kompilierte |
5 |
Version *extrem* schneller läuft als eine offizielle Binary. Ob es nur |
6 |
an den Optimierungen des Compilers liegt oder vielmehr an anderen |
7 |
Faktoren, weiss ich nicht. |
8 |
|
9 |
|
10 |
> Die meisten PCs in der Umgebung sind AthlonXPs, wir haben aber auch |
11 |
> einige P3 Duron, Athlon und einen AMD K6-2 im Netzwerk. |
12 |
|
13 |
Alles bis auf den K6-2 sind i686. Ich würde eventuell in den sauren |
14 |
Apfel beissen und OpenOffice einmal auf i686 und einmal für i586/k6-2 |
15 |
zu kompilieren. Könnte Vorteile bringen. |
16 |
|
17 |
|
18 |
> Ich habe gelesen, dass mcpu das letzte noch lauffähige System |
19 |
> bestimmt? funktionniert das neben march=athlon-xp in den CFLAGS? |
20 |
|
21 |
Andersrum. |
22 |
|
23 |
march ist der kleinste Prozessor, auf dem deine Binaries noch laufen, |
24 |
also in deinem Fall i686 für fast alle und i586 wenn der K6 noch |
25 |
mitspielen soll. |
26 |
mcpu ist die optimierung selbst, also in deinem Fall athlon-xp. |
27 |
|
28 |
Das obligatirische RTFM... |
29 |
aus man gcc: |
30 |
|
31 |
These -m options are defined for the i386 and x86-64 family of |
32 |
computers: |
33 |
|
34 |
-mcpu=cpu-type |
35 |
Tune to cpu-type everything applicable about the generated |
36 |
code, except for the ABI and the set of available |
37 |
instructions. The choices for cpu-type are i386, i486, i586, |
38 |
i686, pentium, pentium-mmx, pentiumpro, pentium2, pentium3, |
39 |
pentium4, prescott, nocona, k6, k6-2, k6-3, athlon, |
40 |
athlon-tbird, athlon-4, athlon-xp, athlon-mp, winchip-c6, |
41 |
winchip2 and c3. |
42 |
|
43 |
=> While picking a specific cpu-type will schedule things |
44 |
=> appropriately for that particular chip, the compiler will not |
45 |
=> generate any code that does not run on the i386 without the |
46 |
=> -march=cpu-type option being used. i586 is equivalent to |
47 |
=> pentium and i686 is equivalent to pentiumpro. k6 and athlon |
48 |
=> are the AMD chips as opposed to the Intel ones. |
49 |
|
50 |
-march=cpu-type |
51 |
Generate instructions for the machine type cpu-type. The |
52 |
choices for cpu-type are the same as for -mcpu. Moreover, |
53 |
specifying -march=cpu-type implies -mcpu=cpu-type. |
54 |
|
55 |
|
56 |
[ Die Interessante Stelle mal markiert. ;-) ] |
57 |
|
58 |
cu, Bernd |
59 |
|
60 |
-- |
61 |
Querstreifen machen dick. |
62 |
Längsstreifen machen schlank. |
63 |
Funkstreifen machen Tatü-tata. |