User: Password:
Subscribe / Log in / New account

What's new in GCC 4.5?

What's new in GCC 4.5?

Posted May 14, 2010 20:28 UTC (Fri) by daglwn (guest, #65432)
Parent article: What's new in GCC 4.5?

While this problem will never be solved in computers with inexact representation of floating-point numbers,

That's simply not true. Compilers have been dealing with this for a long time. For example, good Fortran compilers take great pains not to reorder floating-point computation. There are many solutions available for the x87 problem other than -ffloat-store. For the vast majority of x86 machine today, compiling for sse2 works great.

Usually the user cares more about consistency on one architecture (compiler flags not changing results) than consistency across architectures (bitwise matching results on different processors). The latter is indeed very difficult to achieve but even that is possible with enough work. Maintaining consistency across flags (other than those designed to relax consistency) is not very hard at all.

(Log in to post comments)

What's new in GCC 4.5?

Posted May 14, 2010 22:48 UTC (Fri) by stevenb (guest, #11536) [Link]

I thought Fortran is the most liberal language of all when it comes to re-ordering floating point computations? I'll confess it's been a while since I programmed Fortran, but I seem to remember that anything goes, except when a computation is in parentheses.

What's new in GCC 4.5?

Posted May 15, 2010 5:37 UTC (Sat) by daglwn (guest, #65432) [Link]

Just because the standard might allow it doesn't mean customers will. :)

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