LWN.net Logo

What's new in GCC 4.5?

What's new in GCC 4.5?

Posted May 13, 2010 15:52 UTC (Thu) by foom (subscriber, #14868)
In reply to: What's new in GCC 4.5? by creemj
Parent article: What's new in GCC 4.5?

You're not really supposed to use the x87 FPU these days, anyways. Use SSE2 instead, which actually uses 64bit FP operations instead of 80bit. Then you don't have the problem in the first place.

Unfortunately most software for Linux/x86 is compiled without SSE2 enabled, because distros want to support pre-Pentium4 processors.


(Log in to post comments)

What's new in GCC 4.5?

Posted May 15, 2010 6:02 UTC (Sat) by RCL (guest, #63264) [Link]

Just use 64-bit OS. Luckily, there's no FPU in x86-64, it's gone together with MMX.

What's new in GCC 4.5?

Posted May 22, 2010 14:00 UTC (Sat) by robert_s (subscriber, #42402) [Link]

That's not true.

They're still there, but there are just better replacements for both of them. The only situation where this might be true is if bit 29 of CPUID 0x80000001 is not set, in which case you can't use MMX in long mode.

x87 is always there.

What's new in GCC 4.5?

Posted May 21, 2010 14:10 UTC (Fri) by foo-bar (guest, #22971) [Link]

On 32-bit x86 SSE2 is sometimes slower than x87.

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds