DEV Community

Discussion on: Does size matter?

Collapse
moopet profile image
Ben Sinclair

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.

Thread Thread
opensussex profile image
gholden Author

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....

Thread Thread
moopet profile image
Ben Sinclair

Arch.

Thread Thread
opensussex profile image
gholden Author

I'm on mint - I wouldn't have expected a difference in file size really.

Thread Thread
opensussex profile image
gholden Author

In asm - works out to be 920Bytes.