On Sun, Mar 24, 2013 at 01:21:42PM +0100, Oleg Endo wrote: > On Sun, 2013-03-24 at 15:03 +0800, Chung-Ju Wu wrote: > > 2013/3/24, ishare <june.tune.sea@xxxxxxxxx>: > > > > > > If I not use optimization in compilation , will those inline functions be > > > actually inlined by gcc ? > > > > > > thanks! > > > > > > > Not unless you use 'always_inline' attribute. > > > > http://gcc.gnu.org/onlinedocs/gcc/Function-Attributes.html#Function-Attributes > > Also, when in error or in doubt, use option '-save-temps' and look at > the asm code that is generated by the compiler. Can this help to print all temp varibles on stack whose value may be optimized out by -O2 ? thanks! > > Cheers, > Oleg >