Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sourceware.cygnus.com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin@sourceware.cygnus.com>
List-Help: <mailto:cygwin-help@sourceware.cygnus.com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner@sourceware.cygnus.com
Delivered-To: mailing list cygwin@sourceware.cygnus.com
>Received: from port.de (oe@ute.port.de [194.173.33.3])
	by ute.port.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id MAA00369;
	Tue, 13 Jun 2000 12:46:48 +0200
Message-ID: <39461118.632FED33@port.de>
Date: Tue, 13 Jun 2000 12:46:48 +0200
From: Heinz-Juergen Oertel <oe@port.de>
Organization: port GmbH Germany
X-Mailer: Mozilla 4.7 [en] (X11; I; Linux 2.2.13 i686)
X-Accept-Language: de, en
MIME-Version: 1.0
To: Richard Kaye <R.W.Kaye@bham.ac.uk>
CC: cygwin@sourceware.cygnus.com
Subject: Re: Size of "hello world" program in c++ / cygwin
References: <003201bfd51b$51902e20$6e38bc93@bham.ac.uk>
Content-Transfer-Encoding: 7bit
Content-Type: text/plain; charset=us-ascii

It's mentioned often in the mailing-list, but my be not in the cygwin-faq
probably in the gcc faq:


use
$ gcc -s

to strip symbols from the executable
or use 
$ strip file.exe


mfg
 Heinz

Richard Kaye wrote:
> 
> 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.W.Kaye@bham.ac.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@sourceware.cygnus.com

