Mail Archives: pgcc/1999/05/10/15:31:56
At 09:09 10/05/99 -0700, you wrote:
>On Mon, 10 May 1999, Dr H. T. Leung wrote:
>
>>If you had read the mailing list archive, it is terribly unfair to
>>people on the list to cc you replies when you are not on the list.
>>If you want to ask a question, subscribe, read on for a while, then
>>post (then maybe unsubscribe).
>
>That's EXTREMELY strange.
What's so strange about it ?
>Optimizing comiplers like egcs/pgcc do "strength reduction"
I always thought strength reduction was generally considered a
bad idea on register starved machines like the x86 architecture.
Then again, I might be mistaken...
>According to my timing tests pgcc hasn't gained me anything over egcs so
>far, but I keep hoping.
You might try reducing the optimization level. I've had code nearly
doubling speed after changing -O6 into -O and setting the cpu switch
wrong on purpose. At this kind of optimization levels things don't
always work out as they were ment to be. But then again, my code was
using long longs, which is a long way from floating point math.
Trying won't hurt though...
Also, as egcs is incorporating more and more of pgcc's optimizations
that are known to work well, the performance gap is closing fast.
Greetings,
Gian-Carlo
- Raw text -