Path: chuka.playstation.co.uk!news From: Toby Sargeant Newsgroups: scee.yaroze.programming.gnu_compiler Subject: GNU Malloc (was Re: Memory allocation probs...) Date: Fri, 31 Oct 1997 10:19:03 +1100 Organization: Forefront Software Services Lines: 17 Message-ID: <345915E7.11D17D58@forefront.com.au> References: <34551BB5.58BA@dial.pipex.com> NNTP-Posting-Host: ws19.forefront.com.au Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (WinNT; I) I have a port of GNU malloc done for the psx, if anyone wants it. I've never bothered to do timings against the psx version, though, so I can't say what the advantages are likely to be. I'd expect it to either be faster, or be more efficient at the memory it returns to the malloc arena. One of the nice (IMHO) features that my port has is that you can specify the size and position of the malloc arena, rather than being forced to give it the memory from the top of your code to the top of memory. Unfortunately, given that there's no memory managment (I thought that the R3000 _did_ have memory management. has this just been ripped out, was it external, or is it just disabled?) there's no neat way to increase the size of the arena, because it has to be a contiguous block of memory. One simple extension would of course be to have multiple arenas, but that would become messy to use. Now I've just got to find the time to do something _interesting_ with it :( toby.