Mail Archives: djgpp/1997/03/23/06:55:34
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 -