Mail Archives: djgpp/1998/01/20/12:40:10
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 -