
The Complete Guide to Dynamic Memory Allocation in C
Learn malloc, calloc, realloc and free from scratch, the bugs they cause, who owns each pointer, and what glibc does underneath, with tested patterns.
Tag
445 posts

Learn malloc, calloc, realloc and free from scratch, the bugs they cause, who owns each pointer, and what glibc does underneath, with tested patterns.

Learn I2C from the open-drain wires up: addresses, ACK, repeated start, pull-up sizing, STM32 register code, bus scans, clock stretching and recovery.

Open windows, read keyboard, mouse and gamepad input, handle resizes and high-DPI, and choose between GLFW 3.4 and SDL 3.2 for OpenGL and Vulkan programs.

Simulate Verilog and VHDL with Icarus Verilog, Verilator, GHDL and cocotb, view waveforms in GTKWave, write self-checking tests and choose the right tool.

A complete guide to bits, bytes, binary, hex and octal for programmers, with conversions, binary arithmetic, masks, memory, ASCII and hex dumps worked in C.

Understand codecs and containers from raw pixels to files: compression, frame types, H.264, H.265, VP9, AV1, AAC, Opus, MP4, MKV, WebM, streaming and ffmpeg.

One guide to locking in C, C++ and Rust: mutexes, deadlock, condition variables, semaphores, barriers, rwlocks, spinlocks, futexes and debugging.

A full guide to GDB for C and C++: building for debugging, crashes, wrong answers, hangs, corruption, threads, core files, remote targets and habits.

Learn perf from first run to expert use: counting, sampling, call graphs, flame graphs, memory and scheduler analysis, tracing and a measurement workflow.

A map of the Yocto Project: Poky, BitBake, layers, recipes, caches, images and reproducible builds, with the key commands for Scarthgap 5.0.

A complete guide to x86-64 assembly on Linux: registers, flags, addressing, branches, the stack, calling C, atomics, encoding and a full worked program.

Learn FreeRTOS V11.1.0 software timers, the timer service task, the idle hook and tickless idle, from one-shot timers to low-power setup.