Howto avoid temporaries instantiated fully?
Richard Guenther
rguenth@tat.physik.uni-tuebingen.de
Sun Mar 3 08:42:00 GMT 2002
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/
More information about the Gcc
mailing list