Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of two options weighed side by side, with the C, Linux and Rust logos.
Networking

Blocking vs Non-Blocking I/O Explained

Learn what blocking and non-blocking I/O mean for sockets on POSIX, what EAGAIN tells you, and why servers with many clients switch to non-blocking mode.

6 min read
Flat illustration of parallel threads meeting at a mutex, with the Linux, Erlang and C logos.
Concurrency

Processes vs Threads: What Is the Difference

A process owns an address space and a thread is a schedulable flow inside one. See what each shares and isolates on Linux, with fork and pthread_create code.

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

Write Your First Makefile for a C Program

Write a working Makefile for a small C program with a compiler variable, flags, object files and a clean target, and see how make decides what to rebuild.

6 min read
Flat illustration of heap memory as allocated and free blocks, with the C, Rust and Zig logos.
Debugging

Find Memory Leaks With Valgrind Memcheck

Run a C program under Valgrind Memcheck with --leak-check=full to find memory that was allocated and never freed, and read the report down to the source line.

7 min read
Flat illustration of an assembly listing with addresses and mnemonics, with the Arm, Intel and AMD logos.
Assembly

The AAPCS Calling Convention on 32-Bit ARM

The AAPCS rules for 32-bit ARM and Cortex-M: argument and result registers, what a callee must preserve, 64-bit pairs, stack alignment and hard-float.

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

What Is errno and How Does It Work in C

errno is a per-thread integer that C library and system calls set on failure. Learn when it is valid and how to read it correctly with glibc 2.41.

7 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.