How to Use PGO and LTO With Meson and Clang
A tested walkthrough for enabling Profile Guided Optimization and Link Time Optimization in a Meson project built with Clang, including the llvm-profdata merge step most guides forget.
I write low-level C and C++ on FreeBSD, Linux and Yocto: security daemons, custom distributions, and the software underneath the software. Certified engineer in France. I write things up here once I’ve worked them out.
A tested walkthrough for enabling Profile Guided Optimization and Link Time Optimization in a Meson project built with Clang, including the llvm-profdata merge step most guides forget.
Measuring PGO and LTO on a C++ SPH simulation with perf and flamegraphs, and why they barely helped.
Before touching a single line of my fluid simulation, I let the compiler do the work. Just changing flags got me from 1x to roughly 40x.
Multiboot2 drops you in 32-bit protected mode; Limine hands you a 64-bit environment. A single entry trampoline that handles both without forking the kernel.
Air quality monitoring on a custom board.
A ready-to-flash home server distribution, built with Yocto.
A POSIX-compliant operating system for x86-64, written from scratch.
The blog you are currently reading.
History and design of UNIX.
The book I hand to anyone who says they want to get into low-level programming.