https://github.com/x0reaxeax/tiny_helloworld
Tiniest "Hello World" ELF executable in C - 113 bytes (i386), 150 bytes (x86_64)
https://github.com/x0reaxeax/tiny_helloworld
elf elf64 i386-elf small-binary smallest-size sstrip tcc
Last synced: about 2 months ago
JSON representation
Tiniest "Hello World" ELF executable in C - 113 bytes (i386), 150 bytes (x86_64)
- Host: GitHub
- URL: https://github.com/x0reaxeax/tiny_helloworld
- Owner: x0reaxeax
- Created: 2022-05-27T20:08:25.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-06-23T11:00:51.000Z (almost 3 years ago)
- Last Synced: 2025-04-05T11:39:53.222Z (2 months ago)
- Topics: elf, elf64, i386-elf, small-binary, smallest-size, sstrip, tcc
- Language: C
- Homepage:
- Size: 1.95 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Tiny "Hello World"
Smallest "Hello World" ELF executable I was able to produce without the use of any external assembler.
## Tools used
**C compiler:** [Tiny C Compiler](https://bellard.org/tcc/)
**Linker:** [GNU Linker](https://linux.die.net/man/1/ld)
**Object stripper:** [ELFkickers' `sstrip`](https://github.com/BR903/ELFkickers)## Building
**i386**: `make main32`
**x86_64**: `make main64`## Results
**ELF_i386:** 113 bytes
**ELF_x86_64:** 150 bytes> Written with [StackEdit](https://stackedit.io/).