Mail Archives: djgpp/1998/04/19/07:24:16
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 -