1 |
Hallo, |
2 |
> Am Montag, 22. Oktober 2007 schrieb Andreas Baier: |
3 |
> > Genau, sowas hatte ich auch mal gelesen. Weißt Du vielleicht ein paar |
4 |
> > Stichworte nach denen man nachschlagen könnte? Ich bin schon etwas länger |
5 |
> > auf der Suche und gelange immer zu ellenlangen Dokumentationen (CFLAGS, |
6 |
> > gcc), wo es mir etwas schwer fällt das Wesentliche herauszuziehen. |
7 |
> |
8 |
> Mein Stand ist auch schon etwa ein Jahr alt, aber da galt: |
9 |
> |
10 |
> -march=i686 => drunter läuft's dann nicht mehr |
11 |
> -mtune=pentium4 (oder was auch immer) => Optimierung, geht aber auch auf |
12 |
> älteren Maschinen |
13 |
Guter Tipp. |
14 |
|
15 |
-mtune=/-mcpu=<your_arch> |
16 |
-mtune, or -mcpu in older versions of GCC, is similar to -march and accepts |
17 |
the same options. Unlike -march it doesn't break compatibility with older |
18 |
arches. -march and -mtune/-mcpu options can be mixed to get the desired |
19 |
effect. If you aren't going to share your binaries with other computers you |
20 |
don't need this flag and should only set an appropriate -march instead. |
21 |
|
22 |
http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html |
23 |
|
24 |
In meinem Fall wäre dann -mtune=opteron wohl die Beste Wahl, oder? |
25 |
Das würde die 3dnow*-Befehle berücksichtigen und die SSE123/mmx* Instruktionen |
26 |
für Intel-Rechner ebenfalls beinhalten, korrekt? |
27 |
|
28 |
Gruß Andreas |
29 |
-- |
30 |
gentoo-user-de@g.o mailing list |