This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Is there a Problem with -g on mainline (470MB for a 7MB executable)?
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Martin Kahlert <martin dot kahlert at infineon dot com>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 7 Jan 2002 14:35:36 +0100
- Subject: Re: Is there a Problem with -g on mainline (470MB for a 7MB executable)?
- References: <20020107142541.A10862@keksy.muc.infineon.com>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Mon, Jan 07, 2002 at 02:25:41PM +0100, Martin Kahlert wrote:
> Hi!
>
> I am using gcc -v:
> Reading specs from /sw/gcc-3.1/lib/gcc-lib/i686-pc-linux-gnu/3.1/specs
> Configured with: ../gcc-20011231/configure --prefix=/sw/gcc-3.1 --enable-languages=c++,f77,java --enable-threads=posix
> Thread model: posix
> gcc version 3.1 20011231 (experimental)
>
> I compiled a rather big Java program with it using -g.
> I got the message disk full and after doing a 'ls -l' on the static
> library i got this:
> -rw-r----- 1 kahlert titan 468742880 Jan 7 14:15 libtmc.a
> This was about 10MB with earlier version/snapshots IIRC.
>
> The resulting (stripped and static) binary is only
> -rwxr-x--- 1 kahlert titan 6806064 Jan 7 14:16 tmc
>
> Is that possible? Is that correct?
> Thanks for any hint,
> Martin.
>
> PS: Compilation was done via 'gcj -g -c'
What exact binutils are you using?
Jakub