clang VS ccache

Compare clang vs ccache and see what are their differences.

clang

Mirror kept for legacy. Moved to https://github.com/llvm/llvm-project (by llvm-mirror)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
clang ccache
2 28
2,797 2,164
- 2.4%
0.7 9.4
about 4 years ago about 20 hours ago
C++ C++
Apache License 2.0 GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

clang

Posts with mentions or reviews of clang. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-06-25.
  • InCeption
    4 projects | /r/ProgrammerHumor | 25 Jun 2022
    Well, it's written in both actually (https://github.com/llvm-mirror/clang). What I was saying was that it was not written in LLVM, so I don't really know why you even said that
  • Primitive Type Optimisation Question
    1 project | /r/rust | 13 Jan 2021
    For example, clang's stdint.h says "We currently assume that the minimum-width types and the fastest minimum-width types are the same." So you might not actually be getting anything -- other than portability hazards -- by using those types.

ccache

Posts with mentions or reviews of ccache. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-10.
  • Deep Learning with “AWS Graviton2 + NVIDIA Tensor T4G” for as low as free* with CUDA 12.2
    2 projects | dev.to | 10 Sep 2023
    # Download and install ccache for faster compilation wget https://github.com/ccache/ccache/releases/download/v4.8.3/ccache-4.8.3.tar.xz tar -xf ccache-4.8.3.tar.xz pushd ccache-4.8.3 cmake . make -j $CPUS make install popd # Install NumPy, a dependency for PyTorch dnf install -y numpy # Install Python typing extensions for better type-checking sudo -u ec2-user pip3 install typing-extensions # Clone PyTorch repository and install from source git clone --recursive https://github.com/pytorch/pytorch.git pushd pytorch python3 setup.py install popd # Refresh the dynamic linker run-time bindings ldconfig # Install additional Python libraries for PyTorch sudo -u ec2-user pip3 install sympy filelock fsspec networkx
  • This isn’t the way to speed up Rust compile times
    7 projects | news.ycombinator.com | 26 Aug 2023
    > What can I use to cache with MSVC that isn't Incredibuild?

    Ccache works, but if you use the Visual Studio C++ compiler you need to configure your build to be cacheable.

    https://github.com/ccache/ccache/wiki/MS-Visual-Studio

  • Flutter or React Native
    1 project | /r/FlutterDev | 4 Jul 2023
    That ecosystem now is too young. All these things must be configured by an automatic installer. Packages and pods need to be tested before release, etc. Previous was 80 min compilation time of the Firestore package. Solved with https://ccache.dev/. But why Dart developers must know, how to install and configure object cache for C++ compilers?
  • Distcc: A fast, free distributed C/C++ compiler
    11 projects | news.ycombinator.com | 1 Jun 2023
    Related

    https://github.com/icecc/icecream - another option that does what distcc does, but aimed at a somewhat different use case.

    https://ccache.dev/ - a similar idea but provides caching of build outputs instead of distributing builds. You can use it together with distcc to achieve even better performance.

  • Debugging the QtCreator
    1 project | /r/QtFramework | 27 Apr 2023
  • How to avoid compiling whole C++ project every time using Github actions?
    1 project | /r/cpp_questions | 26 Feb 2023
  • Boring Python: Code Quality
    14 projects | news.ycombinator.com | 20 Dec 2022
    > All those big changes introduce commits that make git bisect generally slower.

    Bisection search is log2(n) so doubling the number of commits should only add one more bisection step, yes?

    > Which might be awful if you also have some C code to recompile at every step of bisecting.

    That reminds me, I've got to try out ccache (https://ccache.dev/ ) for my project. My full compile is one minute, but the three files that take longest to compiler rarely change.

  • Ccache – a fast C/C++ compiler cache
    1 project | /r/patient_hackernews | 24 Nov 2022
    1 project | /r/hackernews | 24 Nov 2022
    9 projects | news.ycombinator.com | 22 Nov 2022
    I worked with the internals of this some 16 years ago, maintaining a customized version at Zeugma Systems. Some change of mine was reworked by someone and upstreamed:

    https://github.com/ccache/ccache/commit/e8354384f67bc733bea5...

What are some alternatives?

When comparing clang and ccache you can also consider the following projects:

assimp - The official Open-Asset-Importer-Library Repository. Loads 40+ 3D-file-formats into one unified and clean data structure.

sccache - Sccache is a ccache-like tool. It is used as a compiler wrapper and avoids compilation when possible. Sccache has the capability to utilize caching in remote storage environments, including various cloud storage options, or alternatively, in local storage.

Betty - Holberton-style C code checker written in Perl

buildcache - A build cache

Commander-Genius - Modern Interpreter for the Commander Keen (Vorticon Dreams and Galaxy) and also Cosmos Cosmic Adventure games. This is a mirror repo: The main gitlab repository is at: https://gitlab.com/Dringgstein/Commander-Genius

Redis - Redis is an in-memory database that persists on disk. The data model is key-value, but many different kind of values are supported: Strings, Lists, Sets, Sorted Sets, Hashes, Streams, HyperLogLogs, Bitmaps.

C++ Format - A modern formatting library

linux-tkg - linux-tkg custom kernels

color_coded - A vim plugin for libclang-based highlighting of C, C++, ObjC

icecream - Distributed compiler with a central scheduler to share build load

JuCC - JuCC - Jadavpur University Compiler Compiler

setup-gcc - GitHub action to set up GCC