delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/24/15:50:04

Message-ID: <3517AF38.6932BDE@cs.joensuu.fi>
Date: Tue, 24 Mar 1998 15:03:52 +0200
From: Eugene Ageenko <ageson AT cs DOT joensuu DOT fi>
MIME-Version: 1.0
To: djgpp AT delorie DOT com
Subject: Strip and Coff2exe. File size increasing!

The interesting thing I wish to report is following:

if one compile the program using gcc w/o any special options it
produce the either coff (eg. test.) and executable files (test.exe).

Now if we apply "strip" to test.exe directly or we apply "strip" to
coff file and convert it to exe using "coff2exe" tool we get
different results.

No wonder, but interesting that if we apply "strip" again to
executable, that was produced from "strip'ed" coff file, we get
executable that will increased in size.  !?!

Can anybody explain this situation??? 

try:

gcc test.c (I use -O3 also) -o test
strip test
coff2exe test

now try strip test.exe and observe the increase in file size.

test.c could be any your program

regard: Eugene Ageenko
Please copy your answer to my e-mail (not only to mail-list, I am
not member)

ageson AT cs DOT joensuu DOT fi

- Raw text -


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