delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/13/05:41:27

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <003201bfd51b$51902e20$6e38bc93@bham.ac.uk>
From: "Richard Kaye" <R DOT W DOT Kaye AT bham DOT ac DOT uk>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: Size of "hello world" program in c++ / cygwin
Date: Tue, 13 Jun 2000 10:39:47 +0100
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600

Hi, 

I couldn't find any reference to this in the FAQs or anything.

I compiled and run a C++ "hello world" program using gcc/cygwin
under windows 95 using all the defaults, and although it 
works fine I am surprised to find the executable is nearly half a
megabyte in size.  (462404 bytes, to be precise.) 
Why is this?  Is there any way I can reduce the size to something 
more reasonable?

Many thanks

Richard Kaye



#include <iostream>

int main () {
    cout << "Hello World\n";
    return 0;
}



From Dr Richard W Kaye\\School of Mathematics and Statistics\\
University of Birmingham\\Edgbaston\\Birmingham\\B15 2TT\\U.K.
mailto:R DOT W DOT Kaye AT bham DOT ac DOT uk  http://www.mat.bham.ac.uk/R.W.Kaye
pgp public key http://www.mat.bham.ac.uk/R.W.Kaye/rkpubkey.asc


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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