From: Robert Hoehne 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 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 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 * *****************************************************************