Re: [RFC] klibc requirements, round 2

David Lang (dlang@diginsite.com)
Fri, 11 Jan 2002 13:46:16 -0800 (PST)


I would personally rather see dietlibc / uClibc get ported to the
remaining platforms and have them become fairly standard options for
staticly linking small programs rather then spend the effort to create a
klibc and then make it portable as well.

I would rather have the people looking at making a small, optimized libc
work on one codebase instead of scattering their efforts amoung several
:-)

while the dietlibc / uClibc may not be quite as small and optimized as a
klibc would be the fact that people are currently able to survive with
glibc indicates that the space issue probably isn't _that_ high a priority
(if klibc produces a 100K binary while dietlibc produces a 120K binary and
glibc produces a 2M binary the difference in space between klibc and
dietlibc really doesn't matter much :-)

David Lang

On Thu, 10 Jan 2002, Greg KH wrote:

> So, what's the available options to try to meet these requirements?
>
> Here's some proposed solutions:
> - dietlibc / uClibc
> Nice options. Both of these libraries are already fairly complete.
> One drawback is they are not portable to all platforms. With some
> work, this can probably be solved.
>
> - klibc
> Portability can be achieved through using the kernel unistd.h file
> for the syscall logic, and having a very small _start function
> written. For an example of this kind of code, see the initramfs
> patches from Al Viro on his ftp site:
> ftp://ftp.math.psu.edu/pub/viro/
> This would involve writing/porting a lot of the basic library
> functions. They could be copied from the existing libc
> implementations, but this would be a separate project, requiring
> maintenance over time, and people willing to do the work.
>
> Is this all a good summary? Any other comments from people?
>
> How about responses from the dietlibc and uClibc people on the odds of
> them being able to port to the remaining platforms?
>
> In the meantime, I'll go off and play with klibc, and see if I can get
> some portability based off of Al's example code. If anyone is
> interested, the code can be found at:
> http://linuxusb.bkbits.net:8088/klibc
>
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/