本文目錄一覽:
C語言開源軟件項目有哪些
linux內核 opencv wxWidgets 等等等等 現在這些太多了 根本數不過來 ,現在開源是個趨勢,以後會越來越多
問個白痴問題,C語言開源嗎
語言不存在開不開源。語言本身是一套(語法)標準比如”C++11″,這個標準的草案網上可以下載,如果是正式版本需要付費。
是否開源是指編譯C/C++代碼的編譯器是否開源。
目前只有GCC開源的。intel的和微軟的c/c++編譯器是不開源的。
c語言本身是開源的嗎,c語言是用什麼寫的?謝謝大家了
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.
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++的標準。
這些都是我從自個兒博客摘抄來的,也不見得有人看得到。
原創文章,作者:小藍,如若轉載,請註明出處:https://www.506064.com/zh-hk/n/184498.html