delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/23/06:55:34

Date: Sun, 23 Mar 1997 14:43:11 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Andy Eskilsson <x-aes AT telelogic DOT se>
cc: djgpp AT delorie DOT com
Subject: Re: Size of executable in memory?
In-Reply-To: <ksrah9w7wg.fsf@telelogic.se>
Message-ID: <Pine.SUN.3.91.970323144247.29590L-100000@is>
MIME-Version: 1.0

On 21 Mar 1997, Andy Eskilsson wrote:

> The question is now, how much extra space in memory does a 1-meg
> 'unstripped' executable take, compared to the same executable,
> stripped to 499k?

And the answer is: NONE!

> Exactly what is it strip removes (well I don't have -g enabled and -O2
> as optimization, so it shouldn't be debug-info..) and (probably the
> real question is:) does this take extra memory?

It *is* the debug info, and therefore it doesn't take up any extra
memory.  If you strip it, you cannot easily debug the program, and
even the stack dump printed when it crashes is much less useful since
you cannot easily convert it to a human-readable trace of function
calls.  But other than that, you don't lose anything.

- Raw text -


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