Skip to content
systemcoding.dev

Tag

beginner

445 posts

Flat illustration of source code passing through a compiler and linker into a binary, with the GNU, LLVM and C++ logos.
Toolchains

Use .PHONY Targets Correctly in Makefiles

Declare clean, all and test as .PHONY so a file with the same name cannot stop them, and learn phony prerequisites, subdirectory loops and force rules.

6 min read
Flat illustration of an assembly listing with addresses and mnemonics, with the GNU, Linux and AMD logos.
Assembly

Assemble and Link a GNU as Program on Linux

Assemble a GNU as source file on Linux x86-64 and link it three ways: with ld as a freestanding program, with gcc and libc, and with gcc driving as itself.

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

Write Pin Constraints in PCF and LPF Files

Write pin constraint files for iCE40 (PCF) and ECP5 (LPF) boards with pins, pull-ups, I/O standards, drive strength and clock frequency, then check them.

7 min read