delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/05/17:36:37

Date: Wed, 5 Mar 1997 15:21:42 -0700 (MST)
From: David May <dmay AT tvi DOT cc DOT nm DOT us>
To: Guess <times9 AT clark DOT net>
cc: djgpp AT delorie DOT com
Subject: Re: Help on executable sizes *
In-Reply-To: <Pine.GSO.3.95.970305154746.13182A-100000@explorer2.clark.net>
Message-ID: <Pine.SOL.3.95.970305151913.12698G-100000@curie.tvi.cc.nm.us>
MIME-Version: 1.0

On Wed, 5 Mar 1997, Guess wrote:

> -> : Can someone tell me how to decrease the size of my executables when
> -> : compiled with DJGPP v2.0.
> 
> I do strip file.exe
> That is right, right?

Strip will do the trick for you, but I remember reading in this news list
that strip will (possibly?) place an older version of the stub in your
.exe file (please someone correct me if I'm wrong).  Another solution that
is just as easy is to include the -s switch on the compile command, like
so:

  gcc -O3 -o what.exe -s what.c where.c who.c when.c

That should do it; works for me  :-)

Hope this helps.

David May
ID Card Adminstrator
Albuquerque TVI

- Raw text -


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