Using ccache to speed up the OpenJDK 8 build process

Besides the Java source code, the OpenJDK source repository contains a lot of native C and C++ source code. Native code compilation is much longer than Java and may take a lot of time. During development, the same code may be compiled multiple times with minor changes. Intermediate binary results for parts of the code may be completely equal between the compilations, but usually parts of the code are recompiled even if no changes are added in those parts. It is natural to expect a more clever approach to code recompiling from modern advanced compilation/linking toolchains.

The ccache tool provides such cleverness for native compilation. This tool caches the output of C/C++ compilation so that ...

Get OpenJDK Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.