Michael Van Canneyt wrote:

On Wed, 31 Dec 2008, leledumbo wrote:

Since it's possible to use libc's MM via cmem unit, would the opposite be
possible?

>From the point of view of FPC, there should not be a big problem.
The C library, this is another matter. I am not sure that it
supports plugging in a memory manager.

Well, if you manage to exchange the standard memory-related subroutines (i.e. malloc() & Co.) from the C-library with your own subroutines, it shouldn't be a problem. But I don't know if that's possible if libc is included in the project. Technically it should if you can convince the linker of doing so. ;)

There are many libraries which require you to provide memory managing routines.
But as far as I know, this is all done using some macros.

No, last time I looked, at least in the case of the libpng this is done via real subroutines.


Vinzent.

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to