This is the mail archive of the gcc@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: Increased binary size in RedHat 7 using gcc


So why does linking with a different library i.e. glibc increase the
"HelloWorld" program code size? Can someone explain this? How much of the
code and data in a program like "HelloWorld" are from "glibc".

Thanks a lot,
Pawan

----- Original Message -----
From: "Alexandre Oliva" <aoliva@redhat.com>
To: "Pawan Singh" <psingh@turnstone.com>
Cc: "'H . J . Lu'" <hjl@valinux.com>; <gcc@gcc.gnu.org>
Sent: Wednesday, February 14, 2001 5:19 PM
Subject: Re: Increased binary size in RedHat 7 using gcc


> On Feb 14, 2001, Pawan Singh <psingh@turnstone.com> wrote:
>
> > What is interesting is that using the same "compiler" and same
"libraries"
> > on two different systems RedHat 6.0 and RedHat 7.0, the file sizes are
> > different.
>
> It may be the same compiler, but it would only be the same library if
> you replaced glibc in Red Hat Linux 7 with that of 6.0.
>
> --
> Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
> Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
> CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
> Free Software Evangelist    *Please* write to mailing lists, not to me


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