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: inline function


On Fri, 28 Feb 2003 00:21:27 +0000
"Andres Chavarria" <el_andrecillo at hotmail dot com> wrote:

> Hi,
> 
> I don't know if this helps, but at least under Linux you have to turn 
> optimization on to have the inline functions work. You could try the
> option -O or -O1 or -O2.
I read from gcc manual:
http://gcc.gnu.org/onlinedocs/gcc-3.2.1/gcc/Function-Attributes.html#Function%20Attributes

always_inline
    Generally, functions are not inlined unless optimization is
specified. For functions declared inline, this attribute inlines the
function even if no optimization level was specified.



bye
-- 
Massimiliano Cialdi
cialdi at firenze dot net
m dot cialdi at oksys dot it
cialdi at control dot dsi dot unifi dot it


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