SN Systems Tech Blog

    Compile Faster with the Program Repository and Ccache

    ARTICLE BY: Ying Yi
    POSTED: Nov 17, 2020
    TAGS: LLVM Developers Meeting, Toolchain

    The Program Repository (llvm-prepo) is an LLVM/Clang compiler with program repository support. It aims to improve turnaround times and eliminate duplication of effort by centralising program data in a repository. This lightning talk will focus on showing how using the llvm-prepo and ccache together achieves much faster builds than using either of them individually.

    READ THE WHOLE POST 

    LLVM Build Times Using a Program Repository

    ARTICLE BY: Ying Yi
    POSTED: Jan 20, 2020
    TAGS: LLVM Developers Meeting, Toolchain

    The Program Repository is a project studying the benefits of changing the build workflow, storing object data in a database instead of object files, structured to eliminate duplicated work from the compilation process, enable incremental compilation, and to minimize the work that must be performed by the linker. This article will present the current compile time gains building LLVM and Clang. The Program Repository identifies duplicate code and data across compile units and avoids repeated work during both compilation and linkage. For example, if a function is present in multiple compile units then it will only be optimised and stored once. With duplicates identified at compile time, a program repository linker will not need to process any code or data that it would otherwise discard

    READ THE WHOLE POST