delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/03/05/05:45:16

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
From: "Traveler" <traveler AT netti DOT fi>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: "Hello World !" growed from 361 KB to 730 KB ! What's going on ?
Date: Tue, 5 Mar 2002 12:46:38 +0200
Organization: SAUNALAHDEN asiakas
Lines: 34
Message-ID: <a6271s$r3q$1@tron.sci.fi>
References: <Pine DOT SUN DOT 3 DOT 91 DOT 1020305080150 DOT 17810B-100000 AT is>
NNTP-Posting-Host: mmdcccxxxvii.hdyn.saunalahti.fi
X-Trace: tron.sci.fi 1015324540 27770 195.197.45.137 (5 Mar 2002 10:35:40 GMT)
X-Complaints-To: newsmaster AT saunalahti DOT fi
NNTP-Posting-Date: 5 Mar 2002 10:35:40 GMT
X-Newsreader: Microsoft Outlook Express 5.50.4807.1700
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

> A C program or a C++ program?
C++ program
>
> Did you compile with -g or -gstabs+ or perhaps -ggdb3?
No.

Here´s the following sizes when using those debugging switches:
-g                     777 KB
-gstabs+         855 KB
-ggdb3            914 KB

> What happens if you run `strip' on the program?

Running "strip --strip-unneeded hello.exe" helps. That monstrous "hello.exe"
drops from 730 KB (with optimization's and without debugging info) to 234
KB.

However, it's still quite large for the simplest possible C++ program...

I can understand that there maybe is some extra code to prepare DJGPP
generated programs to run in 32-bit mode in an environment that has allways
been 16-bit (DOS).

However, could it be possible to configure compiler make smaller code for
the Windows "DOS box" ?
I mean, it has all that DPMI stuff ready for running 32-bit programs, right
? (Don't know how stable that stuff is knowing the stability of the software
Microsoft produces :=))

Traveler




- Raw text -


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