什么是C99标准的意义呢? [英] What is the point of the C99 standard?

查看:190
本文介绍了什么是C99标准的意义呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

C99增加了一些实用功能的语言,但我发现很难推荐这取决于C99的行为。这样做的原因是,因为很少有(任何?)实际的C99语言的实现。当然,也有在一些编译器支持有限,但是没有人愿意花时间去写C code只有把它无法移植。

C99 adds several useful features to the language, yet I find it difficult to recommend any practice which depends upon C99. The reason for this is because there are few (any?) actual implementations of the C99 language. Sure, there is limited support in a few compilers, but nobody wants spend the time to write C code only to have it be unportable.

这是令人沮丧因为该标准的编写和定稿超过10年以前的事了。另外,我听到不时C1X的讨论,我不知道为什么有人会采取步骤修改特定的语言的当前版本尚未实现的语言。

This is frustrating given that the standard was written and finalized over 10 years ago now. Plus I hear discussions of a C1x from time to time, and I wonder why someone would be taking steps to revise the language given that the current version of the language isn't yet implemented.

所以我的问题是,今天乔吹C程序员,什么是有用的w.r.t. C99标准给我(如果有的话)?

So my question is, as joe blow C programmer today, what is useful w.r.t. the C99 standard to me (if any)?

推荐答案

MSVC没有,也不会可能是有史以来,支持C99。但是,微软有什么动力去更新自己的C编译器。它不象他们将失去多少生意了它。

MSVC does not, nor will it probably ever, support C99. But Microsoft has little incentive to update their C compiler. It's not like they will lose much business over it.

但也有很多是对C99编译器支持的。

But there are plenty of compilers that have support for C99.

<一个href=\"http://en.wikipedia.org/wiki/C99#Implementations\">http://en.wikipedia.org/wiki/C99#Implementations

关于GCC:

http://gcc.gnu.org/c99status.html

您是对的,也许C99并不是库code有用的(而且可能永远也没有微软的支持),但如果你在一个内部或个人项目的工作,你可以挑选编译器和工具,那么便携性不是大问题。

You are right that perhaps C99 is not useful for library code (and may never be without Microsoft's support), but if you're working on an in-house or personal project where you can pick the compilers and tools, then the portability is not much of an issue.

这篇关于什么是C99标准的意义呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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