www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/22/09:18:35

From: Robert Hoehne <Robert DOT Hoehne AT Mathematik DOT tu-chemnitz DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Reducing image size?
Date: Thu, 22 May 1997 11:16:37 +0200
Organization: TU Chemnitz-Zwickau
Lines: 31
Message-ID: <33840EF5.314D010@Mathematik.tu-chemnitz.de>
References: <5lus5d$8oo AT news DOT inter DOT net DOT il>
NNTP-Posting-Host: pandora.hrz.tu-chemnitz.de
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Gal-on Broner wrote:
> 
> I compile a 14k source using gxx and receive an 200k+ image. How
> can I reduce this to more normal sizes?

In addition to the other messages here something for the wording
of your question. Do not expect that the executable size
depends only on the size of your source file. Here is
very short sample, which you should compile with

gcc -o test.exe test.c

---File test.c-------
static int dummy[2846700L] = {0};

int main()
{
  return 0;
}
-----End of test.c--------

This will produce an exe-file of about 11 MB!!

Robert
-- 
*****************************************************************
* Robert Hoehne, Fakultaet fuer Mathematik, TU-Chemnitz-Zwickau *
* Post:    Am Berg 3, D-09573 Dittmannsdorf                     *
* e-Mail:  Robert DOT Hoehne AT Mathematik DOT TU-Chemnitz DOT DE              *
* WWW:     http://www.tu-chemnitz.de/~rho                       *
*****************************************************************

- Raw text -


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