What's new in GCC 4.5?
Posted May 12, 2010 15:28 UTC (Wed) by
eparis123 (guest, #59739)
Parent article:
What's new in GCC 4.5?
Very comprehensive article; thanks a lot.
One workaround to this behavior is the option -ffloat-store, which stores every floating-point variable in memory. This has, however, a significant cost in computation time. A more fine-grained workaround is to use the volatile qualifier in variables suffering from this problem.
Is this use of the volatile keyword conforming with the (admittedly vague on this point) standard?
I understood that it was always the opposite: we use volatile to avoid the compiler caching memory access in registers.
(
Log in to post comments)