http://gcc.gnu.org/onlinedocs/gcc-3....e-Options.html

This might be geared towards gentoo users but this is general on how to make your program "optimized". I used this to know what i'm putting in my CFLAGS for gentoo or else i'm just blindly doing something I don't understand.

HTH...