Afshin
Afshin

Reputation: 439

Can not disable sse in gcc

I am trying to disable sse and sse2 instructions. I am cross compiling for x86 in a x64 system. I am also using -static to statically link with libc. Although I use -mno-sse and -mno-sse2, when I disassemble the binary I still see a call to strcpy_sse2, any solution?

Upvotes: 4

Views: 6372

Answers (2)

Bryan Olivier
Bryan Olivier

Reputation: 5307

It is highly possible that your library still contains sse instructions. You will have to build the library for your cross system as well and do that without sse instructions.

Upvotes: 4

anshul garg
anshul garg

Reputation: 503

For 64 bit Use -mno-sse gcc option

Upvotes: 8

Related Questions