This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: inline function
- From: Massimiliano Cialdi <cialdi at firenze dot net>
- To: gcc-help at gcc dot gnu dot org
- Date: Fri, 28 Feb 2003 08:22:39 +0100
- Subject: Re: inline function
- Organization: Starfleet
- References: <F1301KxYmNiuVURvc6J000190c9@hotmail.com>
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