David.Comay at Sun.COM wrote: >>> 1. Have you determined that -xO5 generates the best performing code >>> on both >>> SPARC and Intel. The fact that -xO5 is the highest optimization >>> level doesn't >>> always mean it generates the fastest, best performing code. >>> Aggressive inlining >>> can sometimes lead to cache thrashing, which ends up having the >>> exact opposite >>> effect from the one intended. > >> No, I don't think we have tested this really. But I'd like to keep it >> for now and make a decision when we'd had time to test this. > > In addition to the issues that Stefan brought up, higher optimization > levels can also lead to code generation bugs and may cause correctness > issues. Unless you've verified from both a correctness and performance > perspective that higher optimization levels actually work, you should > stick with the default one. Ok, I've removed -xO5 now.
-Victor > > dsc