This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: junk
- To: jgk at jgk dot org
- Subject: Re: junk
- From: Martin von Loewis <martin at mira dot isdn dot cs dot tu-berlin dot de>
- Date: Wed, 29 Apr 1998 08:37:33 +0200
- CC: egcs-bugs at cygnus dot com
- References: <19980428193313.9438@rocky.jgk.org>
> 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