* [gentoo-user-de] march = native = ??
@ 2009-11-08 9:20 muellste
2009-11-08 9:36 ` Jan Riedel
2009-11-08 9:50 ` Justin
0 siblings, 2 replies; 4+ messages in thread
From: muellste @ 2009-11-08 9:20 UTC (permalink / raw
To: gentoo-user-de
Hallo
nach vorhergehender Diskussion die Frage: Wie kann man feststellen welche
Flags gcc für 'march=native' auswählt?
Bzw. wird überhaupt eine Auswahl aus den vorhandenen getroffen oder
schaltet 'native' eigene Optimierungen frei?
mfg stephan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user-de] march = native = ??
2009-11-08 9:20 [gentoo-user-de] march = native = ?? muellste
@ 2009-11-08 9:36 ` Jan Riedel
2009-11-08 9:42 ` Jan Riedel
2009-11-08 9:50 ` Justin
1 sibling, 1 reply; 4+ messages in thread
From: Jan Riedel @ 2009-11-08 9:36 UTC (permalink / raw
To: gentoo-user-de
muellste@math.hu-berlin.de wrote:
> Hallo
>
> nach vorhergehender Diskussion die Frage: Wie kann man feststellen welche
> Flags gcc für 'march=native' auswählt?
> Bzw. wird überhaupt eine Auswahl aus den vorhandenen getroffen oder
> schaltet 'native' eigene Optimierungen frei?
>
> mfg stephan
>
>
man gcc sagt folgendes:
native
This selects the CPU to tune for at compilation time by determining the
processor type of the compiling machine. Using -mtune=native will
produce code optimized for the local machine under the constraints of
the selected instruction set. Using -march=native will enable all
instruction subsets supported by the local machine (hence the result
might not run on different machines).
Gruss,
Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user-de] march = native = ??
2009-11-08 9:36 ` Jan Riedel
@ 2009-11-08 9:42 ` Jan Riedel
0 siblings, 0 replies; 4+ messages in thread
From: Jan Riedel @ 2009-11-08 9:42 UTC (permalink / raw
To: gentoo-user-de
Jan Riedel wrote:
> muellste@math.hu-berlin.de wrote:
>> Hallo
>>
>> nach vorhergehender Diskussion die Frage: Wie kann man feststellen welche
>> Flags gcc für 'march=native' auswählt?
>> Bzw. wird überhaupt eine Auswahl aus den vorhandenen getroffen oder
>> schaltet 'native' eigene Optimierungen frei?
>>
>> mfg stephan
>>
>>
>
> man gcc sagt folgendes:
>
> native
> This selects the CPU to tune for at compilation time by determining the
> processor type of the compiling machine. Using -mtune=native will
> produce code optimized for the local machine under the constraints of
> the selected instruction set. Using -march=native will enable all
> instruction subsets supported by the local machine (hence the result
> might not run on different machines).
>
> Gruss,
> Jan
>
und da steht auch noch:
Native Linux/GNU toolchains also support the value native, which selects
the best architecture option for the host processor. -march=native has
no effect if GCC does not recognize the processor.
Keine Ahnung, ob gcc irgendeine Meldung bringt, wenn die CPU nicht
erkannt wird. Am besten mal ausprobieren.
Gruss,
Jan
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user-de] march = native = ??
2009-11-08 9:20 [gentoo-user-de] march = native = ?? muellste
2009-11-08 9:36 ` Jan Riedel
@ 2009-11-08 9:50 ` Justin
1 sibling, 0 replies; 4+ messages in thread
From: Justin @ 2009-11-08 9:50 UTC (permalink / raw
To: gentoo-user-de
[-- Attachment #1: Type: text/plain, Size: 434 bytes --]
muellste@math.hu-berlin.de wrote:
> Hallo
>
> nach vorhergehender Diskussion die Frage: Wie kann man feststellen welche
> Flags gcc für 'march=native' auswählt?
> Bzw. wird überhaupt eine Auswahl aus den vorhandenen getroffen oder
> schaltet 'native' eigene Optimierungen frei?
>
> mfg stephan
>
>
gcc -c -Q -march=native --help=optimizer
Du kannst das gleiche auch für die unterschiedlichen O level machen.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2009-11-08 9:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-08 9:20 [gentoo-user-de] march = native = ?? muellste
2009-11-08 9:36 ` Jan Riedel
2009-11-08 9:42 ` Jan Riedel
2009-11-08 9:50 ` Justin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox