有关GNU C编译器的信息......? [英] Info about the GNU C Compiler...?

查看:86
本文介绍了有关GNU C编译器的信息......?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道它是一个免费的编译器。但它遵循任何标准吗?如果是这样

这个标准是什么? (Ansi,Ecma等?)

I know it is a free compiler. But does it follow any standard? If so
which standard is it? (Ansi, Ecma, etc?)

推荐答案

Le 26-04-2007,arun< de ****** *@gmail.comaécrit*:
Le 26-04-2007, arun <de*******@gmail.coma écrit*:

我知道它是一个免费的编译器。但它遵循任何标准吗?如果是这样

这个标准是什么? (Ansi,Ecma等?)
I know it is a free compiler. But does it follow any standard? If so
which standard is it? (Ansi, Ecma, etc?)



您在发布之前是否只看过GCC文档?

Google GCC - http://gcc.gnu.org/onlinedocs/ - >

* GCC 4.1.2手册 - >

#1 GCC支持的编程语言

#2 GCC支持的语言标准


Marc Boyer

Did you have a single look at GCC documentation before posting ?
Google GCC -http://gcc.gnu.org/onlinedocs/ ->
* GCC 4.1.2 Manual ->
# 1 Programming Languages Supported by GCC
# 2 Language Standards Supported by GCC

Marc Boyer


arun说:
arun said:

我知道它是一个免费的编译器。但它遵循任何标准吗?如果是这样

这个标准是什么? (Ansi,Ecma等?)
I know it is a free compiler. But does it follow any standard? If so
which standard is it? (Ansi, Ecma, etc?)



gcc / glibc实现非常符合1989 ANSI C

标准,后来更新ISO作为ISO / IEC 9899:1990采用。


它并不声称符合1999年以后的ISO标准,但在

事实上支持最多那个标准的变化是C.它达到了这个不是

那里几年前的一致性水平,并且在可预见的未来没有显示出接近C99的迹象。


-

Richard Heathfield

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

电子邮件:rjh在上述域名, - www。

The gcc/glibc implementation conforms extremely well to the 1989 ANSI C
Standard, which was later adopted by ISO as ISO/IEC 9899:1990.

It does not claim to conform to the later 1999 ISO Standard, but does in
fact support most of that Standard''s changes to C. It reached this "not
quite there" conformance level some years ago, and shows no signs of
approaching C99 any more closely for the foreseeable future.

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


在文章< HN ******* **************@bt.com>,

Richard Heathfield< rj*@see.sig.invalidwrote:
In article <HN*********************@bt.com>,
Richard Heathfield <rj*@see.sig.invalidwrote:

> arun说:
>arun said:


>我知道它是一个免费的编译器。但它遵循任何标准吗?如果是这样
它的标准是什么? (Ansi,Ecma等?)
>I know it is a free compiler. But does it follow any standard? If so
which standard is it? (Ansi, Ecma, etc?)


> gcc / glibc实现非常符合1989 ANSI C 标准,后来被ISO采用为ISO / IEC 9899:1990。
>The gcc/glibc implementation conforms extremely well to the 1989 ANSI C
Standard, which was later adopted by ISO as ISO/IEC 9899:1990.



[OT]

当语言扩展允许时,gcc仍然断言__STDC__

允许(即,编译器没有在严格的

一致性模式下调用)?他们曾经这样做,并且可以原谅它说不符合ANSI / ISO标准的编译器b $ b可以随意做任何他们想做的事,包括
断言

的宏可能会导致程序认为它是由

编译的ANSI / ISO标准编译器。

-

没有人有权通过

要求经验证据来摧毁他人的信念。 - Ann Landers

[OT]
Does gcc still assert __STDC__ when language extensions have been
allowed (i.e., when the compiler was not invoked in strict
conformance mode) ? They used to do that, and would excuse it
by saying "Compilers which do not adhere to the ANSI/ISO standards
are free to do whatever they want, including asserting macros that
might lead a program to believe that it ws being compiled by
an ANSI/ISO standard compiler."
--
"No one has the right to destroy another person''s belief by
demanding empirical evidence." -- Ann Landers


这篇关于有关GNU C编译器的信息......?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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