有任何 C 编译器实现 C1X 功能吗?
有任何 C 编译器实现 C1X 功能吗?
PS:有没有办法在当前的 C 编译器中模拟其中一些功能
Do any c compilers implement any of the C1X features?
P.S.:Is there a way to emulate some of these features in current c compilers
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
GCC 4.6 对 C1X 功能有一些实验性支持:
GCC 4.6 has some experimental support for C1X features:
除了 gcc 之外,clang 也开始添加对 C1x 功能的支持。特别是,支持
_Generic
和_Static_assert
。其他一些功能也可能会实现,但我还没有尝试过。Besides gcc, clang has started to add support for C1x features. In particular, there is support for
_Generic
and_Static_assert
. Some other features may be implemented as well, but I haven't tried them.基于对列表和 gcc 测试套件的仔细阅读(ls gcc/gcc/testsuite/gcc.dg/c1x*):
Based on perusal of the lists and the gcc testsuite (ls gcc/gcc/testsuite/gcc.dg/c1x*):
您可能需要查看 Pelles C(仅适用于 Windows)。
You may want to check Pelles C out (Only availble for Windows).