4 ms·
Ok fine, I've used the tool called sstrip from a suite called ELFKickers. Now my hello_world.cpp (yes, c++) is 380 bytes long. I could not make it any shorter,
by SomeoneFromCA 7y ago
Ok fine, I've used the tool called sstrip from a suite called ELFKickers. Now my hello_world.cpp (yes, c++) is 380 bytes long. I could not make it any shorter, so yeah, it is 120 bytes (50%) bigger than yours.
- snvzz 7y agoRegarding sstrip, I am familiar with it. Be careful that you know what it actually does.
- SomeoneFromCA 7y agoSo, not order of magnitude then?
- snvzz 7y agoYes, just look into how much effort you had to put vs my five minutes attempt. The difference is between just using asm, or going out of the way to try to coerce a C toolchain to minimize the bloat.
- SomeoneFromCA 7y agoYea, large effort (objcopy, strip, sstrip), that I need to do only once, after that I already know how to do this an can just put it in a shell script. Now, I would like to know how quickly you'll be able to write a quicksort implementaion, that would outperform my C code, while being at least 25% smaller . Yeah, and how big your binary will become, once you link libc or opengl or whatever to make it able to do actual work.