delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/29/08:00:15

From: Ryan Blazecka <eblazecka AT bc DOT sympatico DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Random numbers
Date: Tue, 28 Jan 1997 17:09:32 -0800
Organization: BCTEL Advanced Communications
Lines: 24
Message-ID: <32EEA34C.4476@bc.sympatico.ca>
References: <5ck9gf$ft7$1 AT fizban DOT solace DOT mh DOT se>
Reply-To: eblazecka AT bc DOT sympatico DOT ca
NNTP-Posting-Host: nwmr01m02-30.bctel.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Nils-Erik Svangård wrote:
> 
> I resently downloaded DJGPP and was thrilled.
> But I have some questions.
> 
> *Why are my compiled files so large?
>         I've compiled a nice "little" starfield I've been working on.
>         To my suprise the *.exe file was over 1.8Mb, bad news if you have
>         a small hardrive. Can you decrease that value?
> 
> *When I use delay(10); a warning message appears, it says error in
> declaration int delay(...); but it's void delay(); in the help files.
> 
> It would be nice if someone could help me.
> /nisse

About the size of your EXE, do you have any static arrays in there? If
you do, change them to dynamic arrays (using pointers and malloc()). For
some reason, DJGPP increases EXEs by the size of any static arrays.
Also, use the -s switch on the command line. This will take out any
debugging information from your EXE.

Ryan Blazecka
eblazecka AT bc DOT sympatico DOT ca

- Raw text -


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