2009年1月14日星期三

Make it Inline

When compiling source code using g++, the -O3 flags turns on -finline-functions, which tells g++ to integrate all simple functions int to their callers. If no optimization flags are specified, the default one is -O0, which does no optimization.
The default in g++ seems to be to ignore "inline"
unless one gives the options -finline-functions

references:
http://gcc.gnu.org/onlinedocs/gcc-3.4.2/gcc/Optimize-Options.html#Optimize-Options

没有评论: