PreviousIndexNext

[help-gsl] Re: how to use Hans_Boehm garbage collector with GSL? (2008-07-15)

From: Brian Gough <bjg@gnu.org>
Subject: Re: how to use Hans_Boehm garbage collector with GSL?
Date: Tue, 15 Jul 2008 19:06:33 +0100
To: "Britton Kerin" <bkerin@...........>
Cc: help-gsl@gnu.org

At Tue, 08 Jul 2008 15:31:59 -0800,
Britton Kerin wrote:
> I think some time back someone told me a way to build the GSL that
> would cause malloc to be replaced with GC_malloc etc. collector
> calls, but I don't remember what this was and the email is lost :(
>
> Can anyone point me towards the compiler options I need to make this
> work?

The GNU linker has a --wrap SYMBOL option which can be used to
substitute other functions for calls to malloc/free etc.

--
Brian Gough

GNU Scientific Library -
http://www.gnu.org/software/gsl/