The smallest C binary
Summary
The article investigates how to minimize a C binary on Linux using GCC flags, progressively stripping startup code, standard library dependencies, and dynamic linking, to achieve a very small executable. It explains diagnostic tools like readelf and objdump, and documents a series of build tweaks that reduce the binary from tens of kilobytes down to a few kilobytes, ending with a minimal 4320-byte binary and a final code snippet.