|
|
|
|
|
by Syntaf
807 days ago
|
|
This reminds me of one of my favorite CS assignments in college for a systems programming class: > Given a hello world C++ snippet, submit the smallest possible compiled binary
I remember using tools like readelf and objdump to inspect the program and slowly rip away layers and compiler optimizations until I ended up with the smallest possible binary that still outputted "hello world". I googled around and of course found someone who did it likely much better than any of us students could have ever managed [1][1]: https://www.muppetlabs.com/%7Ebreadbox/software/tiny/teensy.... |
|
That should be like 10 x86 instructions tops, plus the string data.