This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: junk


> A while ago it got constructors and destructors.  Now it has exception
> handling too.  I'm sure these are a very wonderful features that fix all
> problems known to man, but keep in mind i'm just a stupid C programmer.
> 
> I now have a kilobyte of *data* in my program.  I don't understand this.

Joe,

Thanks for your bug report. This is a known problem, and I believe it
is being worked on.

The reason is very simple: every program is linked with libgcc. Due to
the current structure of libgcc, this pulls in several object files
(including their data segments) that were not present in earlier
versions of gcc.

This code is absolutely necessary when linking programs written in
different languages. So it won't go away. Instead, the solution might
be to further split these object files.

Hope this answers your question,
Martin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]