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: Optimizing of explicit temporary storage


* Mark Mitchell:

> I don't think any compiler has ever attempted to turn:
>
>  free (malloc (16));
>
> into a no-op, which would be a simpler case.

There are scheme compilers that turn heap allocation into stack
allocation if they can prove that the object does not escape.
Java code would benefit from this optimization, too.


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