Date: Sun, 19 Apr 1998 14:22:43 +0300 (IDT) From: Eli Zaretskii To: Anshuman Pandey cc: djgpp AT delorie DOT com Subject: Re: [Q] Size of compiled executables from GCC 2.7x vs. 2.8 In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk 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.