Path: chuka.playstation.co.uk!news From: gil@snsys.com (Gil Jaysmith) Newsgroups: scee.yaroze.programming.gnu_compiler Subject: Re: Have I Run Out of Memory? Date: Thu, 14 Aug 1997 09:06:20 GMT Organization: SN Systems Lines: 41 Message-ID: <5suhf7$d5712@chuka.playstation.co.uk> References: <33F2851D.2FD1@cobradev.demon.co.uk> Reply-To: gil@snsys.com NNTP-Posting-Host: gil.snsys.com X-Newsreader: Forte Free Agent 1.0.82 colin adams wrote: >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? .text is the executable machine code representing your C code. .rdata is read-only data (eg strings). .data is the space for initialised variables. .sdata is the space for initialised variables smaller than a certain size in bytes (default 8). >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? http://www.delorie.com http://www.cygnus.com >SIZE.pxe reports-: TEXT DATA BSS DEC HEX FILE > 71408 1392 563380 636180 9B514 MAIN.PXE >Q? Can someone explain these sections? TEXT = .text DATA = .data BSS = the .bss section, which is space for uninitialised variables. This area is cleared with zeroes when the program image is loaded, but the zeroes aren't stored in the game file itself (since this would be silly). Dunno about the rest of the Q's though... Gil Jaysmith SN Systems Software Ltd, makers of Psy-Q... http://www.snsys.com Disclaimer: What I say when I post here represents me, not my employers.