Mail Archives: djgpp/1997/02/21/17:56:01
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 -