Path: chuka.playstation.co.uk!news From: James Russell Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Memory allocation probs... Date: Wed, 29 Oct 1997 14:48:16 +1300 Organization: Peace Computers NZ Ltd Lines: 28 Message-ID: <345695E0.6102@peace.co.nz> References: <34551BB5.58BA@dial.pipex.com> <3454c596.21265918@news.playstation.co.uk> <3456076E.92B9FC58@micronetics.com> <3456FA5F.DB8@dial.pipex.com> NNTP-Posting-Host: intro.peace.co.nz Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.0Gold (X11; I; IRIX 6.2 IP22) Chris Chadwick wrote: > > Thanks to all who replied to my post! > > James Russell: > Im linking to 80100000 because I load all my data/TIMs into low > mem, before the prog. Where in mem do you load your data files? > I link program to 0x80090000 (methinks) and data to 0x80100000. That's just a rip off of some example code though - the only reasoning I'd put behind it is that 0x80090000 is just above the PSX Library, and 0x80100000 is slap bang in the middle of writable mem, so though the size of my code is variable, it shouldn't ever be overwritten by by data. Judging by the file size, code size is really small for most programs (sub 64K). I'm assuming that alloc() grabs memory from the top of mem, just below the stack, and works it's way down. Is this correct Sony? J -- ==PEACE COMPUTERS ==James.Russell@peace.co.nz - 64(9)3730400 -Fax 64(9)3730401 LAPD Motto: Let's leave early and beat the crowd.