Unable to ative the SSE instruction set byadding compile flag “march=native” in gcc

daxignxing daxingxing.yu@gmail.com
Sat Aug 31 11:15:00 GMT 2013

My machine is Core2 microarchitecture and I try to compile some arithmetic
codes by using the SSE instruction set. I search on the web and official
manual, the answer is everything I need to do (in simplest way)  to add the
flag: march=native, because my chip support SSE. But when I use "gcc
-march=native -Q --help=target -v" to check if the flag really works, the
results display on the screen is a little bit beyond expectation, like:-msse
[disabled]-msse2 [disabled]-msse2avx [disabled]-msse3 [disabled]-msse4
[disabled]-msse4.1 [disabled]-msse4.2 [disabled]-msse4a
[disabled]-msse5-msseregparm [disabled]-mssse3 [disabled]I find all the SSE
(even MMX) is disabled. Can any body tell me why and how to solve it? Many
thanks!PS: I know,an alternative way to active the option is to add the
flags like -mmsse ...manually. But, I am just curiosity, why march=native
doesn't works in my system:core2,Ubuntu 12.04(64bit system), gcc 4.6.3

View this message in context: http://gcc.1065356.n5.nabble.com/Unable-to-ative-the-SSE-instruction-set-byadding-compile-flag-march-native-in-gcc-tp964751.html
Sent from the gcc - Help mailing list archive at Nabble.com.

More information about the Gcc-help mailing list