首先,去掉"-O"。既然不用optimization,“-O0”就像“XX脫褲子”,多餘。其次,GCC有好多OPTIMIZATION OPTIONS,如OPTIMIZED FOR CPU,SIZE,CODE。。。建議你在compile .c/.cpp/.C時, catch the line "gcc ....." and then see what options are turned on. If you need to see the details about each option,
$man gcc
or, check
http://gcc.gnu.org/onlinedocs/
Good luck.
$man gcc
or, check
http://gcc.gnu.org/onlinedocs/
Good luck.