> It appears that the interval code for Sun Studio
> Express 2006-06 is unoptimised. For example, check
> out
> prod/lib/v9b/libsunimath.a:ival_add.o:di_add_f().
> Oops.
> That slows down my interval code considerably!
Slows it down compared to what? I'm not sure what you're saying is wrong. It is true that the optimizer can't do much with interval code, but that's always been the case, so Studio Express 2006-06 shouldn't be any slower than previous versions.
Iain
Slows down compared with previous versions of the compiler (e.g., SS-11).
A simple benchmark that does an interval sum using a do-loop will demonstrate it, about 70% slower.
What I'm talking about has nothing to do with what the compiler/optimiser does to my code; it has to do with the library code.
If you compare the compiled di_add_f in v9b/libsunimath.a from SS-E0606 with SS-11 you will see.
/lib
This performance problem is due to a last minute bug fix that we made in Studio Express. In the production release of the compiler, we plan to fix the bug in a way that will not impact performance. So the production release should not suffer from this problem.
Please address any further questions to me at Rupert.Brauch@sun.com as I do not regularly read this forum.
-Rupert