This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ 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: totally folding string operations


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



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