This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Unable to ative the SSE instruction set byadding compile flag âmarch=nativeâ in gcc
- From: daxignxing <daxingxing dot yu at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 31 Aug 2013 03:40:33 -0700 (PDT)
- Subject: Unable to ative the SSE instruction set byadding compile flag âmarch=nativeâ in gcc
- Authentication-results: sourceware.org; auth=none
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.