Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

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
Flat illustration of a single-board computer with its SoC, memory, header and ports, with the Linux, Raspberry Pi and Debian logos.
Embedded Linux

Describe an I2C Sensor in a Device Tree Node

Add a TMP102 temperature sensor to an I2C bus in a device tree with compatible, reg and status, then check that Linux bound the driver and exposes a reading.

6 min read
Flat illustration of RTOS tasks taking turns on a timeline, with the C, Rust and Arm logos.
RTOS

Run Periodic Code With Zephyr k_timer

Run code every N milliseconds in Zephyr with k_timer, including one-shot and periodic modes, the expiry callback rules and how to wake a thread from it.

7 min read
Flat illustration of user space above the system call boundary, the kernel and the hardware, with the C, Linux and GNU logos.
Systems Programming

Common errno Values and What They Mean

A cheat sheet of the errno values you meet most on Linux, such as ENOENT, EACCES, EINTR and EAGAIN, with the cause, the reaction and when not to retry.

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.