mixing gc with someon else's lib

Jack Andrews effbiae@gmail.com
Sun Nov 16 03:36:00 GMT 2008


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



More information about the Gcc-help mailing list