Path: chuka.playstation.co.uk!news From: Developer Support Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Have I Run Out of Memory? Date: Thu, 14 Aug 1997 10:22:22 +0100 Organization: PlayStation Net Yaroze (SCEE) Lines: 80 Message-ID: <33F2CE4E.3EC3@interactive.sony.com> References: <33F2851D.2FD1@cobradev.demon.co.uk> NNTP-Posting-Host: 194.203.13.10 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 3.01 (Win95; I) colin adams wrote: > > Hello all > > I am Still having Memory Problems with my Project. > It seems that I have run out of Memory. My Project Data + > *.pxe Totals only 719,763 bytes (less than a meg). > > Q? What is the Total Memory Capacity for Yaroze Projects? > > This is the situation. > > I have game data loaded in memory regions-: > 1. 80090000 - 800e86cb. tmds, sound, map-data. > 2. 80190000 - 801fd9fb. tmds. > > Data is loaded in 2 sections because my *.pxe resides at-: > [text] 80100000 - 801116ef. [.rdata] 801116f0 - 801117cf. > [.data] 801117d0 - 80111bcf. [.sdata] 80111bd0 - 80111c5f. > The *.pxe size = 81920 bytes. > > Q? Can someone explain these sections? > > The Memory regions-: 80120000-8018ffff have been inaccessible > for some time. Tmds loaded into this region result in either-: > a) Code not supported. > b) 0x8 not initialised. > c) Failure to appear on Screen. > > I ignored this because I suspected the boot disk was using this memory. > BUT as the code grows 90k+, the memory regions 80190000 + are also > corrupted. > Data which worked previously, now throws up the errors previously > mentioned. > Its as if the memory is wiped out when the program executes. > > Q? Whats going on? > Basically, the four sectors of program that you mention above (text, rdata, data, sdata) are NOT the only memory space that your program uses. The globals used by your program extend beyond that. The best way to find out exactly what areas of memory your program occupies is to generate a mapfile; under GNU, specify -Xlinker -Map -Xlinker mapfile as a linker options; under CodeWarrior there is probably some IDE option to build a mapfile. The mapfile will tell you all memory locations user by your program. It sounds as if you may want to find ways to reduce the space consumed by global variables in your program. NOTE that the boot disc/program DOES NOT use any memory above 0x80090000 except for the very top of memory (eg above 0x801ff000) where there is a system stack, next to which is your program stack. > I Saw a program called SIZE.exe in the Gnu directory. I managed to get > it running. > (No Docs) > > Q?. Are there any more docs on Gnu? via Ftp?, Website? > > SIZE.pxe reports-: TEXT DATA BSS DEC HEX FILE > 71408 1392 563380 636180 9B514 MAIN.PXE > > Q? Can someone explain these sections? > > Q? Have I Run Out of Memory? > > Q? is it possible to modify any of this via mipspsx.x ? > > Thanks in advance. > > -- > Colin Adams > Cobra Developments > Email: colin@cobradev.demon.co.uk > See HSFK PlayStation Yaroze Demo at-: > http://www.cobradev.demon.co.uk/