This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
Re: totally folding string operations
- From: "Giovanni Bajo" <giovannibajo at libero dot it>
- To: "Loren James Rittle" <rittle at latour dot waar dot labs dot mot dot com>,<libstdc++ at gcc dot gnu dot org>
- Date: Thu, 7 Oct 2004 13:35:37 +0200
- Subject: Re: totally folding string operations
- References: <200409300321.i8U3L28I072034@latour.waar.labs.mot.com>
Loren James Rittle wrote:
> It would be very
> interesting indeed to consider a paired compiler & standard library
> implementation change which allowed the compiler to detect memory
> allocation optimizations based on final context of use. At least
> according to OOPSLA papers circa 2000, escape analysis (and rewrite)
> has been applied successfully to large Java programs.
Yeah, I gave a deeper look at the issue and it seems that detecting pointer
escapes is much harder than I thought, especially until we are able to inline
after optimizations (and reoptimize, and re-inline, etc.).
Giovanni Bajo