delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/11/15/19:49:03

From: Frank Musheler <fastm33 AT freemail DOT absa DOT co DOT za>
Newsgroups: comp.os.msdos.djgpp
Subject: compiled EXE is bloated in C++
Date: Fri, 16 Nov 2001 02:35:53 +0200
Message-ID: <e1n8vtsgv3pft1k6ivb9206qlmqrdr3doi@4ax.com>
X-Newsreader: Forte Agent 1.8/32.553
MIME-Version: 1.0
NNTP-Posting-Host: user15103.vip-za.com
X-Trace: 16 Nov 2001 02:36:10 -0800, user15103.vip-za.com
Lines: 24
X-Report: Report abuse to newsabuse AT vip-za DOT com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Can anyone help me work out why the size of my compiled executables is
so large. when I compile a basic hello world program

#include <iostream.h>
int main(void)
   {
   cout <<"Hello World!" << endl;
   return 0;
   }

the size of the EXE file is about to 240K when i compile with
gxx -s hello.C -o hello.exe

I've read the FAQ and it says the file size should be more around 140K
I have the binutils file bnu2112b.zip.

This only happens when I compile in C++, C programs compile to roughly
the size mentioned in the FAQ.

Can anyone who knows more than me tell me what the possible reason for
this might be. Also is there anyway to get the manual that isn't in
INFO format? Any help would be appreciated.

Thanx

- Raw text -


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