www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/21/17:56:01

To: me AT jenkinsdavid DOT demon DOT co DOT uk
Cc: djgpp AT delorie DOT com
Subject: Re: Size of .exe Why so BIG???
Message-ID: <19970221.175632.7567.3.fwec@juno.com>
References: <zhGzBBAxPZDzEwYP AT jenkinsdavid DOT demon DOT co DOT uk>
From: fwec AT juno DOT com (Mark T Logan)
Date: Fri, 21 Feb 1997 17:50:08 EST

On Fri, 21 Feb 1997 12:24:17 +0000 David Jenkins
<me AT jenkinsdavid DOT demon DOT co DOT uk> writes:
>When I compile a simple code that just printfs "Hello World" the
>executable is 79k in size.
>
>I've written a starfield using allegro and that is 197k.
>
>Is there some compiler switch to suppress the inclusion of unwanted 
>data
>in the .exe???
>

use 

gcc -s <other stuff> 

this gets rid of symbol data, but you will not be able to debug or
profile the output code.

You can also use 'strip' one of the GNU binutils.  I've never used it,
but I think it does 
something like removing unnecessary data from the .exe.  I could be wrong
about this.

Good luck

-Fwec

- Raw text -


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