1 |
Jan Riedel wrote: |
2 |
> muellste@××××××××××××××.de wrote: |
3 |
>> Hallo |
4 |
>> |
5 |
>> nach vorhergehender Diskussion die Frage: Wie kann man feststellen welche |
6 |
>> Flags gcc für 'march=native' auswählt? |
7 |
>> Bzw. wird überhaupt eine Auswahl aus den vorhandenen getroffen oder |
8 |
>> schaltet 'native' eigene Optimierungen frei? |
9 |
>> |
10 |
>> mfg stephan |
11 |
>> |
12 |
>> |
13 |
> |
14 |
> man gcc sagt folgendes: |
15 |
> |
16 |
> native |
17 |
> This selects the CPU to tune for at compilation time by determining the |
18 |
> processor type of the compiling machine. Using -mtune=native will |
19 |
> produce code optimized for the local machine under the constraints of |
20 |
> the selected instruction set. Using -march=native will enable all |
21 |
> instruction subsets supported by the local machine (hence the result |
22 |
> might not run on different machines). |
23 |
> |
24 |
> Gruss, |
25 |
> Jan |
26 |
> |
27 |
|
28 |
und da steht auch noch: |
29 |
|
30 |
Native Linux/GNU toolchains also support the value native, which selects |
31 |
the best architecture option for the host processor. -march=native has |
32 |
no effect if GCC does not recognize the processor. |
33 |
|
34 |
Keine Ahnung, ob gcc irgendeine Meldung bringt, wenn die CPU nicht |
35 |
erkannt wird. Am besten mal ausprobieren. |
36 |
|
37 |
Gruss, |
38 |
Jan |