C99与ANSI。 [英] C99 Versus ANSI.

查看:83
本文介绍了C99与ANSI。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好


什么是C99标准。它是便携式的,我的意思是我在GCC中看到

-std = C99选项

但VC ++中没有这样的东西。?


哪一个更好ANSI C / C99?

我能否知道C99和C之间的主要区别? ANSI C标准?

解决方案

sunny说:


大家好


什么是C99标准。



这是C的替代品,流行的实现可能会移植到
C99现在任何十年。
< blockquote class =post_quotes>
是可移植的,



编号一些编译器实现了它的一些部分。其他编译器实现其他

位。有些人实施了一些/错误/(或者,至少,不同于C99所要求的b $ b b b b b b b g g g g g g g g g g g b b b b b b b b b b b b b b b b拥有)。有些编译器没有实现任何一个。还有一些(不是那么知名的)编译器实现了它。


i意味着我看到了

-std = GCC中的C99选项



这是用词不当。这意味着C99的一部分我们可以被打扰

来实现 (公平地说,这是相当多的)。但并非所有gcc

版本都有-std = C99选项。例如,我没有。


但VC ++中没有这样的东西。



对。微软并没有积极寻求支持C99。


哪一个更好ANSI C / C99?



这取决于你的意思更好。


我能否知道主要的区别C99与...之间ANSI C标准?

http:// home。 tiscalinet.ch/t_wolf/tw/c/c9x_changes.html

-

Richard Heathfield

" Usenet is a奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)


sunny写道:


大家好


什么是C99标准。



这是当前的C标准,由ANSI / ISO定义。旧标准

(C89)现已过时。


便携式


是的。在linux,windows和许多其他操作系统和实现中都有编译器。微软并没有实现它,但你可以找到像intel编译器实现它的编译器实现它的b $ b。 Comeau C / C ++也实现了C99。


,我的意思是我看到


-std = GCC中的C99选项

但VC ++中没有这样的东西。



VC ++并不关心C开发,并且放弃了大多数C开发专注于C#C ++和其他语言的开发。


>

哪一个更好ANSI C / C99?



C99提供大部分所有标准(包括像get()这样的疣)

并增加了重要功能。


我能否知道C99与...之间的主要区别ANSI C标准?

http: //home.tiscalinet.ch/t_wolf/tw/c/c9x_changes.html


jacob navia说:


sunny写道:


>大家好

什么是C99标准。



这是当前的C标准,由ANSI / ISO定义。旧标准

(C89)现已过时。



Merriam-Webster定义过时因为不再使用或不再使用
有用,这肯定不适用于C89。它还提供种类或

风格不再是最新的,这对C89来说也是如此。


它是否便携


是的。



如果您准备花钱用更新版本替换您的C90编译器,并且如果你不太挑剔哪个你想要移植到平台上的平台。


linux下有编译器,windows和很多

其他操作系统和实现。



OS390怎么样? VM / CMS? UNICOS? SHARC?


微软没有实现它,



因此它实际上是非便携的,因为很多C程序员需要使用他们的雇主提供的编译器,而且对于很多雇主而言,很多很好的雇主,Microsoft是首选的基于Windows的供应商< br $> b $ b开发软件。


< snip>


-

Richard Heathfield

Usenet是一个奇怪的地方 - dmr 29/7/1999
http://www.cpax.org.uk

电子邮件:rjh在上面的域名(但显然放弃了www)


Hi All

What is C99 Standard is all about. is it portable, i mean i saw
-std=C99 option in GCC
but there is no such thing in VC++.?

which one is better ANSI C / C99?
can i know the major difference between C99 & ANSI C standards?

解决方案

sunny said:

Hi All

What is C99 Standard is all about.

It''s the replacement to C, and popular implementations might be porting to
C99 Any Decade Now.

is it portable,

No. Some compilers implement some bits of it. Other compiler implement other
bits. Some implement some bits of it /wrong/ (or, at least, differently to
what C99 requires, perhaps through bugginess or ignorance, but possibly for
good reasons of their own). Some compilers don''t implement any of it. And a
handful of (not so well-known) compilers implement it all.

i mean i saw
-std=C99 option in GCC

It''s a misnomer. What it means is "the bits of C99 which we can be bothered
to implement" (which, to be fair, is quite a lot of it). But not all gcc
versions have a -std=C99 option. Mine, for instance, does not.

but there is no such thing in VC++.?

Right. Microsoft are not actively seeking to support C99.

which one is better ANSI C / C99?

That depends on what you mean by "better".

can i know the major difference between C99 & ANSI C standards?

http://home.tiscalinet.ch/t_wolf/tw/c/c9x_changes.html
--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


sunny wrote:

Hi All

What is C99 Standard is all about.

It is the current C standard, as defined by ANSI/ISO. The old standard
(C89) is now obsolete.

is it portable

Yes. There are compilers for it under linux, windows, and many
other operating systems and implementations. Microsoft doesn''t
implement it, but you can find compilers like intel compiler
that implements it. Comeau C/C++ implements C99 also.

, i mean i saw

-std=C99 option in GCC
but there is no such thing in VC++.?

VC++ doesn''t care about C development and has abandonend
most C development to concentrate on C# C++ and other languages.

>
which one is better ANSI C / C99?

C99 offers most of the all standard (including warts like gets())
and adds significant functionality.

can i know the major difference between C99 & ANSI C standards?

http://home.tiscalinet.ch/t_wolf/tw/c/c9x_changes.html


jacob navia said:

sunny wrote:

>Hi All

What is C99 Standard is all about.


It is the current C standard, as defined by ANSI/ISO. The old standard
(C89) is now obsolete.

Merriam-Webster defines "obsolete" as "no longer in use or no longer
useful", which is certainly not true of C89. It also offers "of a kind or
style no longer current", which again is not true of C89.

is it portable

Yes.

Provided you are prepared to spend money replacing your C90 compilers with
newer versions, and provided you aren''t too picky about which platforms you
want to port to.

There are compilers for it under linux, windows, and many
other operating systems and implementations.

How about OS390? VM/CMS? UNICOS? SHARC?

Microsoft doesn''t implement it,

So it is effectively non-portable, since a great many C programmers are
required to use the compiler supplied by their employer, and for a great
many employers, Microsoft is the preferred supplier for Windows-based
development software.

<snip>

--
Richard Heathfield
"Usenet is a strange place" - dmr 29/7/1999
http://www.cpax.org.uk
email: rjh at above domain (but drop the www, obviously)


这篇关于C99与ANSI。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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