Statically linked binary way way too big

Geoff Keating geoffk@geoffk.org
Wed Oct 16 11:22:00 GMT 2002


Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua> writes:

> On 16 October 2002 05:13, Momchil Velikov wrote:
> > >>>>> "Denis" == Denis Vlasenko <vda@port.imtp.ilyichevsk.odessa.ua>
> > >>>>> writes:
> >
> > Denis> Oh, and here is the source code of that program:
> >
> > Denis> int main() {
> > Denis>         return 0;
> > Denis> }
> >
> > So, what's wrong ? This program being 400k does not imply a 6-lines
> > program would be 800k.
> 
> I know. Basically we suck in half of C lib into empty program.
> 
> >  In a real program startup file costs will
> > quickly disseminate throughout the useful code. (that's not to imply
> > the startup files are not useful ;)
> 
> A real program (part of glibc): sln

Most real programs, including sln, have to use stdio anyway to report
errors, and this drags in all the i18n machinery.

-- 
- Geoffrey Keating <geoffk@geoffk.org>



More information about the Libc-alpha mailing list