delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/20/12:40:10

From: Simon <s DOT j DOT harris AT ic DOT ac DOT uk>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019