Saw this post, "
Hello from a libc free world" and thought that you guys might find it interesting given that we are using C to implement emulations of simple historical hardware systems and translations of the machine code that would have run on it. The post starts with the question, why is a simple
Hello World program, like the following, still 11Kb in size:
The remainder of the article delves into the intermediate assembly code generated by gcc and investigates how we can make Hello World as small as possible and actually avoid using the standar library when it is not needed.
In the same vein, this tutorial on creating "
really teensy ELF executables for Linux" deals with producing the smallest
ELF executables on Linux and demonstrates how hand-coding the assembly in the executable is still the best way to make sure that the only code in your executable is the code that you intended to be there.