[LLVMdev] Accounting for stack space

Sandro Magi naasking at gmail.com
Tue Jul 10 12:05:38 PDT 2007


On 7/10/07, Chris Lattner <sabre at nondot.org> wrote:
> > For instance, is it possible to entirely replace the malloc/free
> > called by the LLVM libraries with my own implementation? This would
> > achieve my goals, as I'm not against heap allocations, I just need to
> > be able to measure them.
>
> Not really.  The JIT allocates from the same heap as the program being
> used.  Your choices are to either override malloc/free for both the JIT
> and the program or for neither of them.

I want to 'intercept' ALL allocations actually, including the stack if
possible, so the above suits me just fine.

Sandro



More information about the llvm-dev mailing list