From: Simon Newsgroups: comp.os.msdos.djgpp Subject: Re: 3k lines = 4 MEG!! EXE ?? Help Date: Tue, 20 Jan 1998 15:15:08 +0000 Organization: Imperial College Lines: 33 Message-ID: <34C4BF7C.5AFF@ic.ac.uk> References: <34C4B1C1 DOT 51D2 AT netunlimited DOT net> Reply-To: s DOT j DOT harris AT ic DOT ac DOT uk NNTP-Posting-Host: linpc.me.ic.ac.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk gilley wrote: > > Hi all DJGPPers, > > The story so far...... > > Making a 3d game with DJGPP+Allegro 2.2.. > > version 1, 1000 lines of code + 100 lines "model data"= 200k exe > > version 2 , 2000 lines of code + heavy Allegro use = 350K exe > > version 3, 3000 lines of code + Allegro + lots of globals > used in testing + 500 lines of "model data" > consisting of initialized structures that hold > the 3d models. = 4 MEG exe. > > Running strip on the 4 Meg exe gets me a 3.9 meg exe. > > Using Mathlib and Allegrolib. > > What is going on here? What has caused the exe to jump to 4 megs? > > Good day to all, STG Could possibly be the 'lots of globals' - particularly if they are global arrays. Remember, globals will be initialised (to zero if not specified) at compile time and the initialised values stored in the executable file. Simon.