c语言本身是开源的吗,c语言是用什么写的?谢谢大家了

 我来答
25th_engineer
2020-05-08
知道答主
回答量:3
采纳率:0%
帮助的人:1869
展开全部

 C语言是一个由ISO组织中的ANSI制定的标准,任何个人或者组织都可以根据这个标准将其实现。现今,世界上有许多不同的C语言实现,比较著名的有:GCC、Watcom、MS C等,其中前两者是开源的,后者是闭源的。下面粘贴几个老外的回答(原回答链接)。

The C language is not a piece of software but a defined standard, so one wouldn't say that it's open-source, but rather that it's an open standard.

There are a gazillion different compilers for C however, and many of those are indeed open-source. The most notable example is GCC's C compiler, which is all under the GNU General Public License (GPL), an open-source license.

There are more options. Watcom is open-source, for instance. There is no shortage of open-source C compilers, but without a doubt the most widespread one, at least in the non-Windows world, is GCC.

For Windows, your best bet is probably Watcom or GCC by using Cygwin or MinGW.

C is a standard which specifies how C compilers should generate programs.

C itself doesn't have any source code, just like a musical note doesn't have any plastic.

Some C compilers, such as GCC, are open source.

C is just a language, and a standardised one at that, too. It pretty much is the compiler that "does all the work". Different compilers did have different dialects; before the the C99 ANSI standard, you had things like Borland C and other competing compilers, that implemented the C language in their own fantastic ways.

stdlib is just an agreed-upon collection of standard libraries that are required to be present in any ANSI C implementation.

       关于C++开源与否:

  与C语言类似,C++也是由ISO/ANSI制定的一个标准,所谓的“官方”并未给出确切的实现,任何组织与个人都可以根据标准自己开发一个C++编译器出来。出名的C++编译器有:GCC/G++、libc/libc++、clang(++)、 Visual studio和MS´ runtime等。也把老外的几个回答贴出来(原回答链接)。

C++ itself is only a description what the language should be,

without a definite implementation.

Anyone can make his own implementations (compiler etc, runtime library, ...)

and call it C++ if it fits to the description.

http://www.open-std.org/jtc1/sc22/wg21/

And if a implementation is open source depends on the creator.

Examples of implementation (parts):

GCC/G++, libc/libc++, clang (++ too), Visual studio and MS´ runtime...

C++ is developed by an ISO standard committee. There's also a C++ foundation that runs a web site you might want to read.

C++ itself is a language, not a specific implementation, so there's no source code available for the standard/language itself.

Some C++ implementations are open source (e.g., Gnu and Clang).

1. C++ is a code standard defined by the International Organization of Standardization (ISO). There are many different implementations of the language, but they all tend to conform to C++11. Unlike Linux or Qt, C++ is just a standard, and to use any code written in the language you'll need a compiler. The major compilers (list from Wikipedia) are LLVM Clang, GCC, Microsoft Visual C++, and the Intel C++ Compiler.

2. C++ revisions are dealt with by ISO, and are influenced primarily by the maintainers of the above four implementations.

3. Clang and GCC are both open-source, I'm sure if you poke around you can find other conforming compilers but those are the two most used.

       总之,跟Java、Python和PHP这样所谓的开源语言不同,C语言与C++没有官方提供的各自确切的实现代码(库),ISO/ANSI仅仅提供了C和C++的标准。

        这些都是我从自个儿博客摘抄来的,也不见得有人看得到。

aaawangmeiyan
2013-06-04
知道答主
回答量:54
采纳率:0%
帮助的人:22.2万
展开全部
本身肯定是的,C语言本身属于高级语言,是用C语言写的
追问
c语言是用c语言本身写的?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
懒洋样D
2013-06-04
知道答主
回答量:55
采纳率:0%
帮助的人:25.3万
展开全部
C语言就是一种高级编程语言啊,给人用的语言又不是软件怎么叫开源。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
sunnyfulin
2013-06-04 · TA获得超过465个赞
知道小有建树答主
回答量:244
采纳率:0%
帮助的人:187万
展开全部
这个问题。。。我都不想说愚蠢。。。。

问你个问题:我们是说汉语的,那么请问,英语是开源的么?英语是用什么写的??

什么叫做语言??
一系列被 赋予了 某种特定含义 的 规则符号,叫做某种语言的 文字;
一系列对应的 发音,叫做某种语言的 发音;
文字和读音合起来才是一种完整的语言。

比如,“苹果”这两个汉字,它代表这一种水果,而不是小狗、小猫。

同样,C语言也是这样,
C语言本身定义了很多英语单词作为关键字,像for这个单词,在C语言中引导着循环;
int 这个符号代表整型数据结构;
这些是语言本身定义的。
话再说回来——以上这些规则,就定义了一门语言。

任何编程语言本身都不是源代码,而是规则。

所谓开源,只能说源代码是开源的,C语言能够写出来很多函数库,有些库是开源的,而有些不是。
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
薇蓝天色661
推荐于2017-12-16 · 超过10用户采纳过TA的回答
知道答主
回答量:44
采纳率:100%
帮助的人:24.5万
展开全部
C语言本身不是开源的。这个从C调用诸多的.dll库你就可以知道了。
C语言是一种计算机程序设计语言,它既具有高级语言的特点,又具有汇编语言的特点。
汇编是机器可以直接识别的语言
C还是蛮伟大的,JAVA的底层全是C写的
本回答被网友采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 3条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式