# How to Create Really Teensy ELF Executables for Linux

Original title: Creating Teensy ELF Executables for Linux (Or, "Size Is Everything")

> Hacker News story 49433554 · language: en · submitted 2026-08-25
> Web version: https://zeli.app/story/49433554
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 87 · by [Bluestein](<https://news.ycombinator.com/user?id=Bluestein>) · 💬 20
[original](<https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html>) · [HN discussion](<https://news.ycombinator.com/item?id=49433554>)

## Summary

This tutorial dives into the art of shrinking Linux executables to their absolute minimum size. Starting with a simple C program that returns 42, the author progressively strips away layers of overhead—switching to assembly, bypassing startup files, and ultimately making direct system calls. The journey reveals the inner workings of the ELF format and Linux's system call interface, culminating in a 368-byte executable. A must-read for anyone fascinated by low-level programming and software minimalism.

## Key quote

> If you're a programmer who's become fed up with software bloat, then may you find herein the perfect antidote.

## HN discussion (20 comments)

### [WalterGR](<https://news.ycombinator.com/item?id=49496273>)

> Part 2: https://www.muppetlabs.com/~breadbox/software/tiny/revisit.h...
>
> Discussed here a couple months ago: https://news.ycombinator.com/item?id=48654411
>
> Part 3: https://www.muppetlabs.com/~breadbox/software/tiny/somewhat....

### [BruceEel](<https://news.ycombinator.com/item?id=49495978>)

> This is actually a lot of fun. Never did it on Linux, but Windows PE EXE files make similar tricks possible. Windows 95 in particular was very permissive. Using a (very primitive, by today's standards) hex editor I tried making the ".text" section begin halfway through the header and bang! ..it worked, a revelation of sorts. I imagine today's loaders may be a bit more strict because of security but I guess you can always make your own loader :)

### [davidwritesbugs](<https://news.ycombinator.com/item?id=49496031>)

> I wonder how much of this could be done by a clever linker? There’s a lot of skill in there but how would an llm do, for the rest of us?

---

## Cite

- Page: https://zeli.app/story/49433554
- Date: 2026-08-25
- Source: muppetlabs.com (https://www.muppetlabs.com/~breadbox/software/tiny/teensy.html)
- Hacker News: https://news.ycombinator.com/item?id=49433554

## Other languages

- zh: https://zeli.app/zh/story/49433554 · markdown: https://zeli.app/zh/story/49433554.md
- ja: https://zeli.app/ja/story/49433554 · markdown: https://zeli.app/ja/story/49433554.md
- ko: https://zeli.app/ko/story/49433554 · markdown: https://zeli.app/ko/story/49433554.md
- de: https://zeli.app/de/story/49433554 · markdown: https://zeli.app/de/story/49433554.md
- es: https://zeli.app/es/story/49433554 · markdown: https://zeli.app/es/story/49433554.md
- ru: https://zeli.app/ru/story/49433554 · markdown: https://zeli.app/ru/story/49433554.md
