Skip to content
systemcoding.dev
Topic

Fundamentals

Bits, bytes and number representation, pointers, memory layout, data structures and algorithms, taught from first principles for people who build systems.

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

How argc and argv Reach main in a C Program

The kernel copies argc and argv onto the new process's stack on execve, then startup code hands them to main. See the layout and measure it with a program.

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

Stack vs Heap Memory in C Explained

See where C variables live: the stack for locals that vanish on return, the heap for data you free yourself. Learn the limits, costs and bugs of each.

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.