Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of a debugger stopped at a breakpoint beside the register values, with the Arm, Linux and LLVM logos.
Performance

Find Hot Instructions With perf annotate

Use perf annotate to see which assembly instructions and source lines inside a hot function receive the most samples, and how to read skid correctly.

6 min read
Flat illustration of logic gates wired into a small circuit, with the Python, Haskell and SparkFun logos.
Hardware

Test HDL Designs in Python With cocotb

Write cocotb 1.9 tests in Python for a Verilog counter: drive a Clock, await RisingEdge and ReadOnly, assert outputs and run on Icarus Verilog from a Makefile.

7 min read
Flat illustration of source code passing through a compiler and linker into a binary, with the GNU, Linux and CMake logos.
Security

Verify Hardening in an ELF With readelf

Write a shell script that uses readelf and nm to fail a build when an ELF binary lacks PIE, full RELRO, a non-executable stack, a stack canary or CET notes.

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.