I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I just tried it using naive gcc which gave me 17KB and strip got it down to 14KB. I guess that's because of stdio but it's been so long since I wrote any C that I can't remember how it all fits together.
I wasn't particularly talking about C, though. I mean that using BIOS screen printing calls you can do it in a handful of bytes in asm, so I'm thinking that of that 8KB, 7.9KB is junk.
I've been a professional C, Perl, PHP and Python developer.
I'm an ex-sysadmin from the late 20th century.
These days I do more Javascript and CSS and whatnot, and promote UX and accessibility.
I'd love to see a way to get it smaller!
I just tried it using naive
gcc
which gave me 17KB andstrip
got it down to 14KB. I guess that's because ofstdio
but it's been so long since I wrote any C that I can't remember how it all fits together.I wasn't particularly talking about C, though. I mean that using BIOS screen printing calls you can do it in a handful of bytes in asm, so I'm thinking that of that 8KB, 7.9KB is junk.
interesting you got 14KB - what os you compiling on?
I guess my next task, is to try it in pure ASM and see what the size is....
Arch.
I'm on mint - I wouldn't have expected a difference in file size really.
In asm - works out to be 920Bytes.