From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: alternative malloc Date: Sat, 15 Apr 2000 22:49:16 +0400 Organization: MTU-Intel ISP Lines: 26 Message-ID: <38F8B9AC.3A8121E2@mtu-net.ru> References: <955814366 DOT 27830 DOT 0 DOT pluto DOT d4ee0fa5 AT news DOT demon DOT nl> NNTP-Posting-Host: ppp104-242.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 955827075 57496 212.188.104.242 (15 Apr 2000 19:31:15 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 15 Apr 2000 19:31:15 GMT X-Mailer: Mozilla 4.72 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Yes, there is. Just allocate a big enough block of memory by malloc() and then allocate its subparts by your own replacement for malloc(). In fact, most of game engines use such an approach (Doom, Quake,...). Just because it's faster and it's possible to put there data cache as well. Good Luck Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru OiSyN wrote: > > Hi! > > Is there an easy way to replace DJGPP's malloc with your own one? > With an easy way I mean a way without changing stdlib... > > Thanx > > OiSyN > mailme AT oisyn DOT com