www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/11/05:52:25

Message-ID: <34B7F527.F5999BBD@gmx.net>
Date: Sat, 10 Jan 1998 23:24:39 +0100
From: Robert Hoehne <robert DOT hoehne AT gmx DOT net>
Organization: none provided
MIME-Version: 1.0
To: Matthew R Krause <matthew DOT krause AT juno DOT com>
CC: djgpp AT delorie DOT com
Subject: Re: Strip.exe
References: <19980110 DOT 124745 DOT 4374 DOT 0 DOT matthew DOT krause AT juno DOT com>

Matthew R Krause wrote :
> 
> What exactly does strip.exe do -- I've noticed it shrinks the size of my
> executables by ~40-50%, but how?

It removes any debugging information from your executable.
This information is needed when you want to debug your program.
And this information is needed _only_ for debugging, that means
you now loose anything when you strip your executable (except of
course the aibility to debug your program).

BTW: You can create the stripped executable already at link time,
when you add the -s switch for gcc, like:

gcc -s -o foo.exe foo.o

Robert
-- 
******************************************************
* email:   Robert Hoehne <robert DOT hoehne AT gmx DOT net>     *
* Post:    Am Berg 3, D-09573 Dittmannsdorf, Germany *
* WWW:     http://www.tu-chemnitz.de/~sho/rho        *
******************************************************

- Raw text -


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