Hacker News

Favorites Setup
Comment by Panzerschrek | original | Creating Teensy ELF Executables for Linux (Or, "Size Is Everything") (1999)
[−]Panzerschrek · 2026-08-30 Sun 05:39 UTC · link
The program described in this article is as simple as possible. What about something more complex, like basic "hello world"? It requires at least one more syscall and several bytes more data.
[−]stevekemp · 2026-08-30 Sun 07:32 UTC · link
Take a look at the collections by the same author:

https://www.muppetlabs.com/~breadbox/software/tiny/home.html

There are some more complete programs there.

[−]Retr0id · 2026-08-30 Sun 12:46 UTC · link
My approach to crafting "small" ELFs (in the hundreds-of-bytes range, written in relatively normal C) is like so: https://github.com/DavidBuchanan314/kurl/blob/main/golfed/el...