- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On a Pentium 4 running Linux Fedora Core 10 and using icc 11.1, is there a way to cause the compiler
to use just the x87 FPU (and not use the SSE FPU)? I have looked at the various compiler options and
I see ways to specify various levels of SSE, but nothing to do just x87.
to use just the x87 FPU (and not use the SSE FPU)? I have looked at the various compiler options and
I see ways to specify various levels of SSE, but nothing to do just x87.
Link Copied
3 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
For the 32-bit icc, -mia32 specifies x87 code only, no SSE. For 64-bit icc, -O0 or '-O1 -mp' may produce x87 code. As SSE2 was present in the first CPUs for x86_64, there isn't any requirement for x87 except when supporting 80-bit long double.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks.
Is there some C preprocessor symbol defined by the compiler to indicate which FPUs
(x87 only, SSE2 only, or mixed) code generation will be done for?
Is there some C preprocessor symbol defined by the compiler to indicate which FPUs
(x87 only, SSE2 only, or mixed) code generation will be done for?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There are symbols such as __SSE2__ to indicate which instructions are available under the options set on command line. They don't prohibit use of earlier instructions such as x87.

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page