develooper Front page | perl.perl5.porters | Postings from September 2009

Re: Embedding Perl but redefining its malloc()

Thread Previous | Thread Next
From:
Raphael_Manfredi
Date:
September 26, 2009 03:02
Subject:
Re: Embedding Perl but redefining its malloc()
Message ID:
h9isud$6se$1@tours.ram.loc
Quoting Joshua ben Jore <twists@gmail.com> from ml.lang.perl.porters:
:On Thu, Sep 24, 2009 at 3:51 PM, Raphael Manfredi
:<Raphael_Manfredi@pobox.com> wrote:
:> So what do I do before instantiating the perl interpretor to install
:> my own memory management rourtines?
:
:Experiment til it works? Like I said, this is a perl library
:compilation time activity so once your C macros are right, you can
:compile perl and get it to pick up your new definitions.

I was afraid you were going to say that.

I do not want to recompile perl with my own macros.  I want to link with
plain stock -lperl then use an API from the perl library to supersede the
memory allocation routines at runtime.

I take from your answer that this API does not exist today and would have
to be developped in order to do what I want.

Bonus question: is there a runtime routine I can call before perl_alloc()
to give me the version of the perl library against which I've been linked?

Raphael

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About