是GNU C库可用非GNU(或POSIX)平台? [英] Is the GNU C Library usable on non-GNU (or POSIX) platforms?

查看:214
本文介绍了是GNU C库可用非GNU(或POSIX)平台?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

只是想知道,是GNU C库(glibc的)可用非GNU和/或非POSIX平台,如Microsoft Windows?

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

推荐答案

是的,它可能在理论上,但没有真正值得在实践中。您将需要端口系统调用接口,动态连接器等零部件到Windows或您选择的平台,而Glibc是不是这是一个理想的人选。

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

如果你真的需要一个自给自足的C库,我会考虑 newlib 或的uClibc (或FreeBSD的/ OpenBSD的libc中)在glibc的。 glibc的是一个复杂的野兽,替代品要小得多,更容易理解。

If you really need a self contained C library, I would consider newlib or uClibc (or FreeBSD's/OpenBSD's libc) over glibc. Glibc is a complex beast, the alternatives are much smaller and easier to understand.

这篇关于是GNU C库可用非GNU(或POSIX)平台?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆