Each binary does the following:
hi!and a newline to standard output.
- Return an exit code of
Here’s a plot of the results (note: log scale X axis):
Here’s a plot of the smallest static binary sizes (<1k, linear scale X axis):
asm-opt is the smallest legitimate result;
asm-elf uses dirty tricks from Tiny ELF Files: Revisited in
Update (2022-01-01): See Tiny Binaries: Assembly Optimization for an explanation of the assembly results.
Update (2022-03-02): Added a follow up post with Go 1.18rc1, Rust 1.59, and TinyGo 0.22.