X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Tim Nicholson 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: References: NNTP-Posting-Host: host81-128-153-22.in-addr.btopenworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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: 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 Precedence: bulk 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 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. >