inline function
Massimiliano Cialdi
cialdi@firenze.net
Fri Feb 28 07:22:00 GMT 2003
On Fri, 28 Feb 2003 00:21:27 +0000
"Andres Chavarria" <el_andrecillo@hotmail.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@firenze.net
m.cialdi@oksys.it
cialdi@control.dsi.unifi.it
More information about the Gcc-help
mailing list