www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/04/19/07:24:16

Date: Sun, 19 Apr 1998 14:22:43 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Anshuman Pandey <apandey AT u DOT washington DOT edu>
cc: djgpp AT delorie DOT com
Subject: Re: [Q] Size of compiled executables from GCC 2.7x vs. 2.8
In-Reply-To: <Pine.OSF.3.96b.980417140428.16994A-100000@saul2.u.washington.edu>
Message-ID: <Pine.SUN.3.91.980419142226.23362P-100000@is>
MIME-Version: 1.0

On Fri, 17 Apr 1998, Anshuman Pandey wrote:

> I noticed that my executables were considerably larger when compiled with
> gcc v2.8 and bnu v2.81 than they were originally when compiled with gcc 
> v2.721 and v2.7. The increase in size was about 100k. Does anyone happen
> to know what the reason behind this might be?

You didn't tell enough to answer that.  First, are those programs
stripped?  In other words, did you run `strip' on them, or used -s
option when linking?  If not, they include debugging info which might
be larger in later versions (more debugging info generally means
better debugging).

If they are stripped, you need to tell which switches did you use when
compiling.  Some switches can have different effects with different
compiler versions.  For example, if you use -O3, the amount of code
inlined by the compiler could change with the versions.

Also, how large are the programs?  Some bloat might be due to
different alignment of the code/data.

In short, tell more.

- Raw text -


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