Statically linked binary way way too big

Denis Vlasenko vda@port.imtp.ilyichevsk.odessa.ua
Wed Oct 16 00:32:00 GMT 2002


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
--
vda



More information about the Libc-alpha mailing list