Path: chuka.playstation.co.uk!chuka.playstation.co.uk!chuka.playstation.co.uk!not-for-mail From: Lewis_Evans@Playstation.sony.com Newsgroups: scea.yaroze.programming.gnu_compiler Subject: Real executable size Date: 17 Feb 1998 06:00:23 -0000 Organization: Sony Computer Entertainment Europe - 119.SS5 Lines: 51 Sender: news@chuka.playstation.co.uk Message-ID: <6cb91n$fpt1@emeka.playstation.co.uk> Reply-To: Lewis_Evans@Playstation.sony.com NNTP-Posting-Host: emeka.playstation.co.uk 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!