This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]