From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: Replacement malloc Date: Mon, 28 Jul 1997 20:19:25 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 23 Message-ID: <33DCFECD.3E1D@cs.com> References: <199707261427 DOT AA067617244 AT typhoon DOT rose DOT hp DOT com> <33dcbdae DOT 175907 AT news DOT eclipse DOT co DOT uk> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp107.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Jason Barstow wrote: > > Thanks. - I've now checked SET's malloc, but this dosn't solve > my particular probem (power2). I'm sure _someone_ has > or knows of another (free) malloc lib! Help please... Your best bet, if you seriously need this sort of precision in malloc(), is to either write one yourself for your specific needs, or adapt an alternative memory management routine to run alongside malloc(). The MUD server that I am working on, for example, has a complete set of overlay routines for memory management, ones that attempt to minimize the wastage of allocating multiple small blocks of memory. I can give you a URL for the source, or send you the appropriate code snippets if you want. It isn't hard, really, but does get complicated from time to time, and a lot depends on what exactly you are using the memory for. -- --------------------------------------------------------------------- | John M. Aldrich | "It may be better to be a live jackal| | aka Fighteer I | than a dead lion, but it is better | | mailto:fighteer AT cs DOT com | still to be a live lion." | | http://www.cs.com/fighteer | - Lazarus Long | ---------------------------------------------------------------------