Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of network packets crossing between two hosts, with the C, Linux and Rust logos.
Networking

Build an epoll Event Loop in C Step by Step

Write a single-threaded TCP echo server on Linux with epoll_create1, epoll_ctl and epoll_wait, using non-blocking sockets and a clean accept and read loop.

8 min read
Flat illustration of source code passing through a compiler and linker into a binary, with the GNU, LLVM and C++ logos.
Toolchains

Use .PHONY Targets Correctly in Makefiles

Declare clean, all and test as .PHONY so a file with the same name cannot stop them, and learn phony prerequisites, subdirectory loops and force rules.

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 an assembly listing with addresses and mnemonics, with the GNU, Linux and AMD logos.
Assembly

Assemble and Link a GNU as Program on Linux

Assemble a GNU as source file on Linux x86-64 and link it three ways: with ld as a freestanding program, with gcc and libc, and with gcc driving as itself.

6 min read
Flat illustration of two options weighed side by side, with the GNU, C and C++ logos.
Systems Programming

Use strerror_r Correctly: XSI vs GNU Versions

strerror_r has two incompatible signatures in glibc. Learn which one you get, how to write code that works with both, and how strerror_l avoids the problem.

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.