A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux

Linked on Mar 17 at 14:06

I’ve never had to worry too much about the size of my executables. Should that day come, this tutorial should give some insight as to how I can shave precious bytes. The code involved prints a number. The author starts with C, with the resulting executable at just under 4K, to assembler with heavy manipulation of ELF headers, with an executable size of 45 bytes. “Every single byte in this executable file can be accounted for and justified.”

Leave a Reply