Besides -s and -Os

What other compiler settings can I set to optimize for size?
That very much depends upon which compiler you are using.
mingw32 with codeblocks 8.02
Why u no use 10.05?
no reply.
@TheMassiveChipmunk
Why are you giving the OP a hard time about an unrelated issue? Who cares what version of C::B he is using?

@wtf
http://www.linuxjournal.com/article/7269
You should also make sure to dynamically link with everything you can.
There are all kinds of platform specific things you can do to optimize code size as well. (And beyond that, there are a whole lot of unkosher things to do also.)

Don't waste your time going overboard, though. Unless you have a very specific size constraint, executable size is not that huge a thing anymore. (Though, personally, I like nice, small programs that do more than someone else's five-times-as-big version.)

For a fun read, check this out:
A Whirlwind Tutorial on Creating Really Teensy ELF Executables for Linux (or, "Size Is Everything")
http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html

:-)
@Duoas Sorry I didn't know it sounded like I was being mean or anything.
@wtf Sorry for any misunderstandings. :)
Topic archived. No new replies allowed.