delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/05/20/15:32:23

Message-Id: <m0yc7za-000S3uC@inti.gov.ar>
Comments: Authenticated sender is <salvador AT natacha DOT inti DOT gov DOT ar>
From: "Salvador Eduardo Tropea (SET)" <salvador AT inti DOT gov DOT ar>
Organization: INTI
To: "Tony Kao" <MacGyver AT ms11 DOT accmail DOT com DOT tw>, djgpp AT delorie DOT com
Date: Wed, 20 May 1998 09:30:48 +0000
MIME-Version: 1.0
Subject: Re: gcc 2.8.1 outputs are much larger than gcc 2.7.2 ... why ??
In-reply-to: <6jr414$qgs$1@news.itri.org.tw>

"Tony Kao" <MacGyver AT ms11 DOT accmail DOT com DOT tw> wrote:

> I just downloaded the gcc 2.8.1 and tried to compile the famous "Hello"
> program. the following is the program:
> 
> #include <iostream.h>
> 
> main()
> {
>     cout << "Hello, DJGPP !!\n";
> }
> 
> with the compile option: gcc -o hello.exe hello.cpp -lstdcx
> I found the execution file size is 386560 bytes, which is much bigger than
> gcc 2.7.2 outputs. For gcc 2.7.2 the execution file size for the same
> program is 187675 bytes.

You MUST strip the debug information. Add -s to the gcc command line or run 
strip hello.exe.

GCC 2.8.x generates a huge amount of debug information, in fact I'm thinking 
about going back to 2.7.2 because the memory needed to debug my program is 
huge.
 
SET 
------------------------------------ 0 --------------------------------
Visit my home page: http://set-soft.home.ml.org/
or
http://www.geocities.com/SiliconValley/Vista/6552/
Salvador Eduardo Tropea (SET). (Electronics Engineer)
Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org
ICQ: 2951574
Address: Curapaligue 2124, Caseros, 3 de Febrero
Buenos Aires, (1678), ARGENTINA
TE: +(541) 759 0013

- Raw text -


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