「C」の版間の差分
ナビゲーションに移動
検索に移動
(ページの作成:「Category:プログラミング言語 en:C Linux カーネルや GNU ユーザーランドは主に C 言語で書かれていま...」) |
Kusakata.bot2 (トーク | 投稿記録) (Pkg/AUR テンプレートの更新) |
||
(2人の利用者による、間の4版が非表示) | |||
3行目: | 3行目: | ||
[[Linux]] カーネルや [[GNU]] ユーザーランドは主に [[Wikipedia:ja:C言語|C]] 言語で書かれています。 |
[[Linux]] カーネルや [[GNU]] ユーザーランドは主に [[Wikipedia:ja:C言語|C]] 言語で書かれています。 |
||
− | Arch Linux は C 標準ライブラリとして [[Wikipedia:ja:GNU Cライブラリ|GNU C Library]] ({{Pkg|glibc}}) を使用しています ({{ |
+ | Arch Linux は C 標準ライブラリとして [[Wikipedia:ja:GNU Cライブラリ|GNU C Library]] ({{Pkg|glibc}}) を使用しています ({{Pkg|base}} に含まれています)。 |
[[GNU プロジェクト|GNU ツールチェイン]]や [[LLVM#ツールチェイン|LLVM ツールチェイン]]を使って C/C++/Objective-C でソフトウェアを開発することが可能です。 |
[[GNU プロジェクト|GNU ツールチェイン]]や [[LLVM#ツールチェイン|LLVM ツールチェイン]]を使って C/C++/Objective-C でソフトウェアを開発することが可能です。 |
||
== 便利なツール == |
== 便利なツール == |
||
− | |||
− | {{Note|2018年8月4日現在、{{Pkg|valgrind}} は {{Bug|59551}} が原因で動作しません。代わりに {{AUR|valgrind-git}} を使うことができます。}} |
||
* {{App|[[Wikipedia:ja:Valgrind|Valgrind]]|プログラム内のメモリ管理問題を見つけるのを補助するツール。|http://valgrind.org/|{{Pkg|valgrind}}}} |
* {{App|[[Wikipedia:ja:Valgrind|Valgrind]]|プログラム内のメモリ管理問題を見つけるのを補助するツール。|http://valgrind.org/|{{Pkg|valgrind}}}} |
||
17行目: | 15行目: | ||
=== 静的コードアナライザ === |
=== 静的コードアナライザ === |
||
− | * {{App|[[Wikipedia:Cppcheck|Cppcheck]]|C/C++ の静的コード解析ツール。|http://cppcheck.sourceforge.net/|{{Pkg| |
+ | * {{App|[[Wikipedia:Cppcheck|Cppcheck]]|C/C++ の静的コード解析ツール。|http://cppcheck.sourceforge.net/|{{Pkg|cppcheck}}}} |
* {{App|[[Wikipedia:Splint (programming tool)|Splint]]|セキュリティの脆弱性やコーディングミスがないか C プログラムを静的にチェックするツール。|http://repo.or.cz/splint-patched.git|{{Pkg|splint}}}} |
* {{App|[[Wikipedia:Splint (programming tool)|Splint]]|セキュリティの脆弱性やコーディングミスがないか C プログラムを静的にチェックするツール。|http://repo.or.cz/splint-patched.git|{{Pkg|splint}}}} |
||
* [[Clang]] には {{ic|scan-build}} 静的アナライザが付属しています。 |
* [[Clang]] には {{ic|scan-build}} 静的アナライザが付属しています。 |
||
26行目: | 24行目: | ||
* {{App|[[Wikipedia:Amsterdam Compiler Kit|ACK]]|Amsterdam Compiler Kit。|http://tack.sourceforge.net/|{{AUR|ack-git}}}} |
* {{App|[[Wikipedia:Amsterdam Compiler Kit|ACK]]|Amsterdam Compiler Kit。|http://tack.sourceforge.net/|{{AUR|ack-git}}}} |
||
* {{App|[[Wikipedia:ja:Portable C Compiler|PCC]]|Portable C Compiler。|http://pcc.ludd.ltu.se/|{{AUR|pcc}}}} |
* {{App|[[Wikipedia:ja:Portable C Compiler|PCC]]|Portable C Compiler。|http://pcc.ludd.ltu.se/|{{AUR|pcc}}}} |
||
− | * {{App|[[Wikipedia:Small Device C Compiler|SDCC]]|Retargettable ANSI C コンパイラ。|http://sdcc.sourceforge.net/|{{ |
+ | * {{App|[[Wikipedia:Small Device C Compiler|SDCC]]|Retargettable ANSI C コンパイラ。|http://sdcc.sourceforge.net/|{{Pkg|sdcc}}}} |
[[Wikipedia:List of compilers#C compilers]] も参照してください。 |
[[Wikipedia:List of compilers#C compilers]] も参照してください。 |
2019年11月21日 (木) 18:48時点における版
Linux カーネルや GNU ユーザーランドは主に C 言語で書かれています。
Arch Linux は C 標準ライブラリとして GNU C Library (glibc) を使用しています (base に含まれています)。
GNU ツールチェインや LLVM ツールチェインを使って C/C++/Objective-C でソフトウェアを開発することが可能です。
便利なツール
- Valgrind — プログラム内のメモリ管理問題を見つけるのを補助するツール。
- distcc — GCC の分散コンパイルフロントエンド。
- rr — C/C++ の軽量な記録・決定的デバッグツール。GDB を使用。
- https://rr-project.org/ || rrAUR
静的コードアナライザ
- Cppcheck — C/C++ の静的コード解析ツール。
- Splint — セキュリティの脆弱性やコーディングミスがないか C プログラムを静的にチェックするツール。
- Clang には
scan-build
静的アナライザが付属しています。
他のコンパイラ
- TCC — GCC よりも高速とうたわれている Tiny C Compiler。
- ACK — Amsterdam Compiler Kit。
- PCC — Portable C Compiler。
- http://pcc.ludd.ltu.se/ || pccAUR
- SDCC — Retargettable ANSI C コンパイラ。
Wikipedia:List of compilers#C compilers も参照してください。
他の libc 実装
- musl — C 標準ライブラリの軽量実装。
参照
- セクション 2 のシステムコールの man ページ
- セクション 3 のライブラリ関数の man ページ
- GCC and Make – Compiling, Linking and Building C/C++ Applications
- SEI CERT C Coding Standard
- ##C IRC channel on Freenode