This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Howto avoid temporaries instantiated fully?
- From: Richard Guenther <rguenth at tat dot physik dot uni-tuebingen dot de>
- To: Joe Buck <Joe dot Buck at synopsys dot com>
- Cc: <gcc at gcc dot gnu dot org>
- Date: Sun, 3 Mar 2002 17:42:10 +0100 (CET)
- Subject: Re: Howto avoid temporaries instantiated fully?
On Fri, 1 Mar 2002, Joe Buck wrote:
> You've stumbled onto the biggest performance problem with g++ as it stands
> today: structs and classes get assigned to memory too quickly, meaning
> that temporary objects can't be optimized away. The result is just what
> you are seeing: the object gets created and you wind up with expensive
> dead stores.
Is there a chance to get this fixed? Do you know, if "usually" commerical
products get this "right"? I.e. for computational intensive applications
performed on lets say a T3E or a Hitachi, do the c++ compilers available
there optimize such cases, or should I better not rely on this?
Richard.
--
Richard Guenther <richard.guenther@uni-tuebingen.de>
WWW: http://www.tat.physik.uni-tuebingen.de/~rguenth/
The GLAME Project: http://www.glame.de/