Intel: x87 vs sse

Eli Friedman wrote:

Fred J. Tydeman wrote:
For C programs, is there a way to tell the compiler what kind of floating-point unit (FPU) to generate code for?
I am thinking of Intel CPUs with x87 versus sse.

clang doesn't support an explicit flag; it will use SSE/SSE2 where available, and x87 otherwise.

You can force x87 with -mno-sse.

Robert P.