[cfe-dev] Intel: x87 vs sse

Robert Purves listrp at gmail.com
Wed Jul 20 01:45:29 PDT 2011


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.





More information about the cfe-dev mailing list