Path: chuka.playstation.co.uk!news From: Jim Newsgroups: scea.yaroze.programming.gnu_compiler Subject: Re: Real executable size Date: Tue, 17 Feb 1998 15:19:54 +0000 Organization: PlayStation Net Yaroze (SCEE) Lines: 58 Message-ID: <34E9AA9A.48A45349@micronetics.com> References: <6cb91n$fpt1@emeka.playstation.co.uk> NNTP-Posting-Host: 193.132.195.245 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.03 [en] (WinNT; I) size is shipped with the yaroze also. just do.... size It will tell you how much is allocated to the bss, text data segments. etc.. Mapfiles are extremely helpful too. Jim Lewis_Evans@Playstation.sony.com wrote: > From: Lewis_Evans@Playstation.sony.com > To: news@playstation.co.uk > > Use the makefile options to force GNU to generate a mapfile: > > eg > > LINKER = -Xlinker -Map -Xlinker mapfile -Xlinker -Ttext -Xlinker 80140000 > > will produce . See what it looks like when your array is declared, > and when the array is commented; you should notice exactly 250K difference. > This difference is in a section of the program which is not uploaded > via siocons; hence the apparent zero-cost of the array. > > Lewis > > To: Lewis Evans > cc: > From: news @ playstation.co.uk > Subject: Real executable size:scea.yaroze.programming.gnu_compiler > > From: "Maurice Sibrandi" > Newsgroups: > scea.yaroze.programming.gnu_compiler,scea.yaroze.programming.libraries,scee > .yaroze.programming.gnu_compiler,scee.yaroze.programming.libraries > Subject: Real executable size > X-MimeOLE: Produced By Microsoft MimeOLE V4.72.2106.4 > Xref: chuka.playstation.co.uk scea.yaroze.programming.gnu_compiler:54 > scea.yaroze.programming.libraries:9 > scee.yaroze.programming.gnu_compiler:163 > scee.yaroze.programming.libraries:108 > When compiled my exe is about 20k (for example) but > when I declare an array of 250k (for a gpu workspace) the > size stays 20k. I wouldn't complain about it because it > saves upload time, but I'm writing my own siocons and > want to include a memory map. How can I see how big > my exe is INCLUDING the static data? Which registers > tell me that in the fileheaders? > Thank u!