Hello Rich,
To answer your question: Yes.
To answer the question better: It depends somewhat on the dependencies that all
get linked in by other dependencies. I'm inclined to think that NewLib,
being designed for embedded controller use is quite compact compared to just
about anything else.
Since most platforms implement the runtime library as a shared object or some
equivalent, it doesn't matter much how big it is since it only loads into
memory once regardless to how many times it is used. The moral of the story is:
Statically link only if your platform doesn't support shared objects.
--Sam
----- Original Message ----> From: Richard Pennington <rich at pennware.com>
> To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
> Sent: Sunday, August 9, 2009 8:39:08 AM
> Subject: [LLVMdev] An interesting comparison.
>
-snip-> Both a.out files are statically linked.
> x86-ecc uses a libc based on newlib, gcc uses glibc (of course).
> Is glibc really that ... big?
>
> -Rich
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev