Can I use the GNU C library on platforms other than GNU (or POSIX)?

Just wondering if the GNU C library (glibc) is usable on platforms other than GNU and / or non-POSIX, such as Microsoft Windows?

+4
source share
2 answers

Yes, this is possible in theory, but in reality it does not stand in practice. You will need to port the syscall interface, the dynamic linker, and other parts to Windows or to your platform of choice, and Glibc is not an ideal candidate for this.

If you really need a standalone C library, I would consider newlib or uClibc (or FreeBSD / OpenBSD libc) on top of glibc. Glibc is a complex beast, the alternatives are much smaller and more understandable.

+7
source

It is envisioned that glibc was ported to the kernel in question. However, it may be easier to use Gnulib instead of wrapping around your own API.

+2
source

All Articles