「利用者:Trrlover/C99」の版間の差分

削除された内容 追加された内容
Trrlover (会話 | 投稿記録)
あまり良くない訳だと思うけど...
Trrlover (会話 | 投稿記録)
編集の要約なし
3行目:
 
'''C99''' is a modern [[dialect (computing)|dialect]] of the [[C programming language]].
 
'''C99'''は、[[C言語|プログラミング言語 C]]の[[方言 (プログラミング言語)|方言]]である。
 
50 ⟶ 51行目:
== Backward compatibility with C90 ==
C99 is for the most part backward compatible with C90, but is stricter in some ways; in particular, a declaration that lacks a type specifier no longer has <code>int</code> implicitly assumed. The C standards committee decided that it was of more value for compilers to diagnose inadvertent omission of the type specifier than to silently process legacy code that relied on implicit <code>int</code>. In practice, compilers are likely to diagnose the omission but also assume <code>int</code> and continue translating the program.
 
== C90との後方互換性 ==
C99はほとんどC90と後方互換であるが、いくつかの場面でより厳格である。
特に、型が省略された宣言で、暗黙的に<code>int</code>と見なされるということはなくなった。
C標準委員会は暗黙的に<code>int</code>に依存する古いコードを黙って処理するよりも注意深くない型指定の欠落を診断する方がより価値があると決定した。
実際には、コンパイラは型の欠落を診断するが、型を<code>int</code>と見なし処理を続ける。
 
== Compatibility with C++ ==
Parts of the C99 standard are included in the proposed extensions to the C++ language known as [[Technical_Report_1|TR1]] and [[C++0x]], including integer types, header files and library functions.
 
== C++との互換性 ==
C99の標準のうちある部分はC++の[[TR1]]や[[C++0x]]として知られる拡張を取り入れた。
整数型、ヘッダファイルやライブラリファンクションを含む。
 
== Support by major compilers ==
86 ⟶ 97行目:
|accessdate=2008-02-15
}}</ref> and it is available without charge in [[Windows]], [[Linux]], [[Mac OS X]], [[Solaris (operating system)|Solaris]], [[QNX]] and [[FreeBSD]].
 
 
== 主要なコンパイラによるサポート ==
[[GCC]]とほかのCコンパイラはC99の新機能の多くをサポートしている。
しかし、[[Microsoft]]や[[Borland]]のような、C++に主にフォーカスしているようなベンダーは、C++が同じような機能向上を提供していることからあまりサポートされていない。
 
GCC, despite its extensive C99 support, is still not a completely compliant implementation (41 features done); as of November 2008, 9 of the features are missing or do not work correctly.<ref>{{cite web
|url=http://gcc.gnu.org/c99status.html
|title=Status of C99 features in GCC
|publisher=Free Software Foundation, Inc.
|date=2007-11-22
|accessdate=2008-01-09
}}</ref>
 
GCCは、その広範なC99のサポートにもかかわらず、企画への完全準拠を果たしていない(41機能について準拠している)。
2008年11月には、九つの機能について、欠落しているか正しく動作していない<ref>{{cite web
|url=http://gcc.gnu.org/c99status.html
|title=Status of C99 features in GCC
|publisher=Free Software Foundation, Inc.
|date=2007-11-22
|accessdate=2008-01-09
}}</ref>。
 
The [[Watcom_C_compiler|Open Watcom C compiler]] implements the most-used parts of the standard. However, they are enabled only through an undocumented command-line switch.<ref>{{cite web
|url=http://www.openwatcom.org/index.php/C99_Compliance
|title=C99 compliance in Open Watcom
|accessdate=2009-03-11
}}</ref>
 
[[Watcom_C_Compiler|Open Watcom C compiler]]は標準のうち最もよく使われている部分を実装している。
ただ、これらはドキュメント化されていないコマンドラインスイッチを指定しないと有効化されない<ref>{{cite web
|url=http://www.openwatcom.org/index.php/C99_Compliance
|title=C99 compliance in Open Watcom
|accessdate=2009-03-11
}}</ref>。
 
According to [[Sun Microsystems]], [[Sun Studio (software)|Sun Studio]] (which is downloadable without charge) now supports the full C99 standard.<ref>{{cite web
|url=http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/c.html#about
|title=Sun Studio 12: C Compiler 5.9 Readme
|publisher=Sun Microsystems, Inc.
|date=2007-05-31
|accessdate=2008-01-09
}}</ref>
 
[[Sun Microsystems]]によれば、[[Sun Studio (software)|Sun Studio]] (無料でダウンロードできる) は現在C99標準を完全にサポートしている<ref>{{cite web
|url=http://developers.sun.com/sunstudio/documentation/ss12/mr/READMEs/c.html#about
|title=Sun Studio 12: C Compiler 5.9 Readme
|publisher=Sun Microsystems, Inc.
|date=2007-05-31
|accessdate=2008-01-09
}}</ref>。
 
 
The C interpreter [[Ch_interpreter|Ch]] supports major C99 features <ref>{{cite web
|url=http://www.softintegration.com/demos/chstandard/c99.html
|title=C/C++ interpreter Ch C99 features
|publisher=SoftIntegration, Inc.
|date=2008-02-15
|accessdate=2008-02-15
}}</ref> and it is available without charge in [[Windows]], [[Linux]], [[Mac OS X]], [[Solaris (operating system)|Solaris]], [[QNX]] and [[FreeBSD]].
 
Cインタプリタ [[Ch_interpreter|Ch]]はC99の主要な機能をサポートしていて<ref>{{cite web
|url=http://www.softintegration.com/demos/chstandard/c99.html
|title=C/C++ interpreter Ch C99 features
|publisher=SoftIntegration, Inc.
|date=2008-02-15
|accessdate=2008-02-15
}}</ref>、[[Windows]], [[Linux]], [[Mac OS X]], [[Solaris (operating systems)|Solaris]], [[QNX]], [[FreeBSD]] で無料で使用できる。
 
== Version detection ==