Jan's Blog!

(Draft) Smallest Echo, Part 2: x86 Assembly

Notice: Draft I’ll publish it once its finished thanks :) Hi all, last time we left off on our journey toward the smallest implementation of an echo binary for linux we where using Zig! Check out Part 1 if you haven’t already. At the end of the post I concluded at 277 bytes. It was at this point I concluded that we needed to leave the final niceties from the realm of mortal programming languages behind. Read more...

Smallest Echo, Part 1: Zig

I was inspired by reading this blog https://briancallahan.net/blog/20200812.html Where the author wants is building the smallest executable echo binary for an x86_64 linux system. In the blog he gets to 848 bytes with programming in assembly and to 840 bytes when compiling a C version of the program with Clang. I really like optimizing code for size so I made myself this challenge to see how much further this could be pushed! Read more...
1 of 1