Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of a debugger stopped at a breakpoint beside the register values, with the Arm, Linux and LLVM logos.
Performance

Find Hot Instructions With perf annotate

Use perf annotate to see which assembly instructions and source lines inside a hot function receive the most samples, and how to read skid correctly.

6 min read
Flat illustration of a CPU core with its cache levels and main memory, with the Arm, AMD and Apple logos.
Performance

Write ARM NEON Intrinsics With arm_neon.h

Use arm_neon.h to write NEON vector loops in C for AArch64: float32x4_t, vld1q_f32, vaddq_f32, vfmaq_f32 and vaddvq_f32, with a full dot product and its output.

7 min read
Flat illustration of a CPU core with its cache levels and main memory, with the Intel, Arm and Apple logos.
Performance

Port an SSE Intrinsics Loop to AVX2

Convert a 128-bit SSE integer loop to 256-bit AVX2: new types, a step of eight, the -mavx2 flag, runtime dispatch and the lane-crossing trap.

6 min read

Get new posts by email

We send one email when a new post is published. No spam.

Unsubscribe in one click. No spam, ever.