This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]