delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2004/02/28/18:03:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: bloated .exe when compiled on linux
Date: 28 Feb 2004 17:14:14 GMT
Organization: Aachen University of Technology (RWTH)
Lines: 24
Message-ID: <c1qi96$3aj$3@nets3.rz.RWTH-Aachen.DE>
References: <c1ofdp$gve$1 AT hercules DOT btinternet DOT com>
NNTP-Posting-Host: accip02.physik.rwth-aachen.de
X-Trace: nets3.rz.RWTH-Aachen.DE 1077988454 3411 137.226.33.41 (28 Feb 2004 17:14:14 GMT)
X-Complaints-To: abuse AT rwth-aachen DOT de
NNTP-Posting-Date: 28 Feb 2004 17:14:14 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

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.

-- 
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.

- Raw text -


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