Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

gcc v3.2 code less efficient than v2.95?

0 views
Skip to first unread message

Jeffrey Cunningham

unread,
Nov 23, 2002, 3:50:35 PM11/23/02
to
I just upgraded my compiler from 2.95 to 3.2 and recompiled a large signal
processing project I work with. I used the same make file (optimization
O3) and have verified that nothing is broken (complicated feedback blocks
produce bitperfect matched outputs to previous code outputs). However, the
runtimes have just about doubled. I was really surprised by this. A factor
of two increase in runtimes is prohibitively expensive for us.

Has anyone else noticed that this compiler produces slower code?

Regards,

-Jeff

Wit Jakuczun

unread,
Nov 24, 2002, 5:38:46 AM11/24/02
to
On Sat, 23 Nov 2002 20:50:35 GMT,
Jeffrey Cunningham <jef...@cunningham.net> wrote:
> Has anyone else noticed that this compiler produces slower code?
>

If your program is written in C++ than my case should be interesting for
you (next time give more precise information).

I have noticed that when I was using streams (g++ 3.2) performance of my
programs decreased about 3 times comparing to GCC 2.95. Two weeks ago I have
sent a post, but no one has given me a reasonable answer. I haven't noticed
performance decrease when I wasn't using streams, GCC 3.2 seems to be
even a little bit faster.
You should also check if you are not overusing "endl". It is better
(faster) to use '\n' then endl, because endl flushes streams.
I hope you will find the answer (I am still looking for it) and will
share with the group :).

Best regards
--
Wit Jakuczun
mailto:wj17...@wp.pl

Paul Dubuc

unread,
Nov 27, 2002, 5:09:44 PM11/27/02
to

Has anyone tried using STLport's (http://www.stlport.org/) streams with
g++ 3.2?

--
Paul M. Dubuc

0 new messages