This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: about inline


On Sun, 2013-03-24 at 15:03 +0800, Chung-Ju Wu wrote:
> 2013/3/24, ishare <june.tune.sea@gmail.com>:
> >
> >  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.

Cheers,
Oleg


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]