Skip to content
systemcoding.dev

Library

Everything you need to level up your coding skills.

Flat illustration of logic gates wired into a small circuit, with the Haskell, KiCad and SparkFun logos.
Hardware

Write an I2C Master State Machine in Verilog

Build an I2C master in Verilog that writes one byte to a 7-bit address with quarter-bit timing, open-drain lines and ACK checking, tested against a slave model.

9 min read
Flat illustration of a debugger stopped at a breakpoint beside the register values, with the C, GNU and LLVM logos.
Security

Fuzz a Binary File Parser With AFL++

Build a file parser with afl-clang-fast and AddressSanitizer, seed and run afl-fuzz 4.x, read the crashes directory and shrink a crash with afl-tmin.

8 min read
Flat illustration of a hex dump with one byte highlighted, with the C, Rust and Python logos.
Fundamentals

NaN, Infinity and Negative Zero Explained

Learn what IEEE 754 NaN, infinity and negative zero are, how they arise, why NaN is not equal to itself, and how to test for each safely in C.

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.