This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
mixing gc with someon else's lib
- From: "Jack Andrews" <effbiae at gmail dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Sat, 15 Nov 2008 23:26:24 +1100
- Subject: mixing gc with someon else's lib
how do i mix my own code (calling GC_MALLOC) with other libs which
could use any memory management techniques they want? thinking about
it, i guess any library and client code must use compatible mm. so i
guess a library must either use malloc or provide it's own alloc
functions.
unfortunately, i want to embed python in my app, and it uses it's own
mm. is the only answer to patch python to use GC_MALLOC for all
memory alloc?
and can i use mmaps in my own code? what do i have to be careful about?
ta, jack