delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/29/14:15:55

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Tim Nicholson <tim AT gizzy DOT dot DOT co DOT dot DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bloated .exe when compiled on linux
Date: Sun, 29 Feb 2004 19:01:09 +0000 (UTC)
Organization: BT Openworld
Lines: 37
Message-ID: <c1tctl$j8g$1@hercules.btinternet.com>
References: <c1ofdp$gve$1 AT hercules DOT btinternet DOT com> <c1qi96$3aj$3 AT nets3 DOT rz DOT RWTH-Aachen DOT DE>
NNTP-Posting-Host: host81-128-153-22.in-addr.btopenworld.com
Mime-Version: 1.0
X-Trace: hercules.btinternet.com 1078081269 19728 81.128.153.22 (29 Feb 2004 19:01:09 GMT)
X-Complaints-To: news-complaints AT lists DOT btinternet DOT com
NNTP-Posting-Date: Sun, 29 Feb 2004 19:01:09 +0000 (UTC)
In-Reply-To: <c1qi96$3aj$3@nets3.rz.RWTH-Aachen.DE>
X-Accept-Language: en-us, en
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031210
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

Sounds plausible to me! I hadn't realised that the default debug mode 
for the -g option had changed. I'll stick with -gcoff as keeping the 
.exe small while retaining the debug information is useful, and the 
information provided by -gcoff has always been adequate in the past.

I'll let you know the results of the `size -A' if the .exe is still 
bloated when using -gcoff.

Thanks.


Hans-Bernhard Broeker wrote:
> Tim Nicholson <tim AT gizzy DOT dot DOT co DOT dot DOT uk> wrote:
> 
> 
>>When I compile a C program with the -g option I get a huge .exe - It is 
>>about 4 times the size of the one produced by the dos compiler. 
> 
> 
> That comparison is not very meaningful unless you made sure both
> compilers in question are the same GCC version, and generate the same
> type of debug information.  DWARF2 debug info is quite a bit more
> voluminous than DJGPP's usual format (stabs).
> 
> Try 'size -A' on both executables to see where all the size goes.
> 
> 
>>What's more, when I use symify to view the debug information after a
>>crash, I do not get as much information as I do with the dos
>>compiled one. 
> 
> 
> Use bsdsymify instead, and it should work.  Default 'symify' doesn't
> understand either -gstabs or -gdwarf2.  That would man the
> DJGPP-native compiler you're using so far is old enough to still have
> '-gcoff' as its default debug information format.
> 

- Raw text -


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