Path: chuka.playstation.co.uk!news From: Craig Graham Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Malloc question Date: Wed, 29 Jul 1998 16:43:43 +0100 Organization: Intelligent Research Lines: 31 Message-ID: <35BF432F.B4C2A7BD@hinge.mistral.co.uk> References: <35BE29A5.9A848CA5@infotrade.co.uk> NNTP-Posting-Host: 194.131.235.3 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (Win95; I) Ian Thompson wrote: > Hi, > > Can you define the memory pool (from this address to that address) that malloc uses to a certain area of memory? You have to in fact (check InitMalloc() ). > Can you define separate memory pools for separate malloc calls? No. > Can you force a garbage collection? I expect Malloc/free uses pretty much the same tried andtested algorithm from K&R as everyone else uses. That doesn't garbage collect as such (not like in Java at any rate) - it just collates as you free up blocks that sit side by side... > Can you set the size of pages? Eh? What pages? Malloc is list based (generally), not page based. > Am I talking rubbish, is there a god, what is the meaning of life... oops got carried away there. : ) Bit of both there I think. > Ian T. Craig.