
The Complete Guide to Benchmarking Native Code Correctly
Measure C, C++, Rust and Go the right way: clocks, optimizer barriers, warm-up, statistics, environment control, frameworks and reporting, with working code.
Everything you need to level up your coding skills.

Measure C, C++, Rust and Go the right way: clocks, optimizer barriers, warm-up, statistics, environment control, frameworks and reporting, with working code.

How a Yocto build becomes a shippable image, how application developers get an SDK, and how devtool speeds up the loop, on Scarthgap 5.0 with BitBake 2.8.

Build an x86 bootloader in NASM from a 512-byte boot sector to a loaded kernel, covering disk reads, A20, the memory map, protected mode and long mode.

How an RTOS works on a microcontroller: tasks, scheduling, interrupts, queues, mutexes, memory and timing, with FreeRTOS code and a route through the series.

Learn malloc, calloc, realloc and free from scratch, the bugs they cause, who owns each pointer, and what glibc does underneath, with tested patterns.

Learn I2C from the open-drain wires up: addresses, ACK, repeated start, pull-up sizing, STM32 register code, bus scans, clock stretching and recovery.

Write a complete Linux 6.12 PCI driver: probe, BAR mapping, MSI interrupts, DMA with a restricted mask, a user-space interface, error recovery and testing.

Open windows, read keyboard, mouse and gamepad input, handle resizes and high-DPI, and choose between GLFW 3.4 and SDL 3.2 for OpenGL and Vulkan programs.

Simulate Verilog and VHDL with Icarus Verilog, Verilator, GHDL and cocotb, view waveforms in GTKWave, write self-checking tests and choose the right tool.

A practical tour of the Linux KVM ioctl interface: system, VM and vCPU descriptors, memory slots, kvm_run exits, interrupts, CPUID, debugging and threads, in C.

Every GCC and Clang hardening flag that matters, with its minimum version, cost and effect on the binary, plus Make, CMake and Meson recipes and checks.

A complete guide to bits, bytes, binary, hex and octal for programmers, with conversions, binary arithmetic, masks, memory, ASCII and hex dumps worked in C.
We send one email when a new post is published. No spam.