Mail Archives: djgpp/2000/08/16/06:04:57
> From: "Rafał Maj" <r_maj AT poczta DOT onet DOT pl>
> Newsgroups: comp.os.msdos.djgpp
> Date: Wed, 16 Aug 2000 10:41:59 +0200
>
> 1) Is it possible to change the memory manager, so the DJGPP allocates the
> memory in more economic way (avoiding memory fragmentation)?
You probably mean to change the malloc/free implementation, not the
memory manager. (The latter is forced on you, at least on Windows.)
Yes, you can replace malloc, but why would you want to? Do you have
any specific problems? If so, please describe them: it's quite
possible that you are looking for solutions in the wrong direction.
> 2) Is it possibly, when running a program, to defragment memory?
Yes, but it's not easy. The easy part is already done by malloc and
free: they splice together adjacent memory chunks that are free'd by
the application.
- Raw text -