Ccache

ccacheとは、CまたはC のコンパイラが出力するデータをキャッシュするソフトウェア開発ツールである。その目的は、2�…

Ccache
ccache
作者 アンドリュー・トリジェル (Andrew Tridgell)、Joel Rosdahl
初版 2002年3月30日 (24年前) (2002-03-30)
最新版
4.12.2 / 2025年11月26日 (8か月前) (2025-11-26)[1]
リポジトリ ウィキデータを編集
プログラミング
言語
C++,C言語[2]
対応OS Unix系
プラットフォーム クロスプラットフォーム
サポート状況 開発中
種別 コンパイルツール
ライセンス GNU General Public License
公式サイト ccache.dev
テンプレートを表示

ccacheとは、CまたはC++コンパイラが出力するデータをキャッシュするソフトウェア開発ツールである。その目的は、2回目以降のソフトウェアビルドにおいてはコンパイルを避け、出力結果を再利用することにある。これは再コンパイル速度を劇的に改善する。このツールはコンパイラがソースコードをコンパイルする際の処理に割り込み、コンパイル時に固有であるべき各種データのハッシュ値を生成する。この付加的な処理により、概ね1度目のコンパイルはキャッシュを実行しない場合に比べ、コンパイルに時間がかかる。2度目以降のコンパイルでは再度ハッシュを生成し、その値がキャッシュデータのものと一致するかチェックする。一致すればccacheはコンパイラにコンパイルを指示する代わりにキャッシュされたデータを書き出す。一致しなければ、コンパイル処理はコンパイラに渡される。

ccacheはGNU General Public Licenseのもと利用可能である。

脚注

  1. ^ ccache news”. ccache.dev. 2025年12月25日閲覧。
  2. ^ Ccache news, Ccache 4.0, Changed tooling” (2020年10月18日). 2022年8月3日閲覧。 “A C++11 compiler, a C99 compiler and CMake 3.4.3 or newer are now required to build ccache.”

関連項目

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.