
Get GCC and Clang to Auto-Vectorise Your Loops
Turn on auto-vectorization in GCC and Clang, read the optimization reports that say why a loop was skipped, and set the flags that matter, including -march.
Everything you need to level up your coding skills.

Turn on auto-vectorization in GCC and Clang, read the optimization reports that say why a loop was skipped, and set the flags that matter, including -march.

Add an SPI peripheral to a device tree with reg as the chip select, spi-max-frequency and the mode flags, using an MCP3008 ADC as the worked example.

Define bytes, words, strings, floats, arrays and zeroed buffers in NASM with db, dw, dd, dq, the res family and times, with exact little-endian layouts.

Use struct k_work_delayable with k_work_schedule and k_work_reschedule to run work after a delay, then build a debounce, a timeout and a periodic task.

Use the goto cleanup pattern in C to release files, memory and locks on every error path in reverse order, with a worked example and its limits.

Replace the vendor assembly startup file with one C file for a Cortex-M4: vector table, weak aliases, data copy, bss clear and the GCC flags that keep it safe.

Read each column of /proc/interrupts, find which CPU serves a device, and pin an IRQ to chosen CPUs with smp_affinity_list on Linux 6.12.

Add Dear ImGui 1.91 to a GLFW 3.4 and OpenGL 3.3 program in C++, wire the two backends, draw a debug window with sliders, and stop input leaking to the scene.

Build a bitstream for an Artix-7 board in Vivado 2024.1 with a non-project Tcl script, an XDC constraint file, implementation and write_bitstream.

Full virtualization runs an unmodified guest, while paravirtualization gives the guest drivers that call the hypervisor. See where virtio and kvmclock fit.

A heap buffer overflow writes past a malloc block into the next chunk. Learn the common causes in C, how AddressSanitizer and Valgrind find them, and fixes.

CPUs split execution into user and kernel mode so the OS can protect itself. See how a Linux x86-64 system call crosses over and what a privileged fault does.
We send one email when a new post is published. No spam.