X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f From: Tim Nicholson Newsgroups: comp.os.msdos.djgpp Subject: bloated .exe when compiled on linux Date: Fri, 27 Feb 2004 22:13:13 +0000 (UTC) Organization: BT Openworld Lines: 25 Message-ID: NNTP-Posting-Host: host81-128-177-119.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 1077919993 17390 81.128.177.119 (27 Feb 2004 22:13:13 GMT) X-Complaints-To: news-complaints AT lists DOT btinternet DOT com NNTP-Posting-Date: Fri, 27 Feb 2004 22:13:13 +0000 (UTC) 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 Hi, I have installed the DJGPP cross compiler on my Mandrake 9.2 Linux box, it all works fine apart from one thing: 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. 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. The functions names appear with an offset but there is no source line number x-ref shown. I downloaded all the sources from DJ's site and used the HOW-TO by Charles Wilkins. All sources used are as per that document. If I run strip -s on the .exe it returns to the normal size, it is almost as if the -g option is causing the .exe to bloat despite apparently containing less debug info! For example, a large project I have produces a 2 Mb .exe (with -g) under dos and an 8MB .exe under Linux. strip -s reduces both to about 1.4 Mb. Any ideas? Tim