Skip to content

posts/super-gcc/ #5

Description

@utterances-bot

Building a Host-Tuned GCC to Make GCC Compile Faster | File Descriptor Two

A while ago, I became interested in reducing my compile times, and examined various methods for this.
This blog post is about enabling all compiler options that I believe can make gcc faster when compiling code, and measuring the gains I got as a result.
How to Build It
mkdir build-gcc16
cd build-gcc16

../gcc-16.1.0/configure
--prefix="$HOME/opt/gcc16-super"
--program-prefix=super-
--enable-languages=c,c++
--disable-multilib
--with-build-config='bootstrap-native bootstrap-lto bootstrap-O3'

make profiledbootstrap -j$(nproc)
make install-strip
Expect to be waiting for a while on make profiledbootstrap.
It took 72 minutes of wall time on my laptop (AMD Ryzen AI MAX+ PRO 395, 16c/32t, -j32).

https://peter0x44.github.io/posts/super-gcc/

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions