Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Message-ID: <3F83DF15.3060905@lapo.it>
Date: Wed, 08 Oct 2003 11:55:33 +0200
From: Lapo Luchini <lapo@lapo.it>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.5) Gecko/20030916
X-Accept-Language: it, en, fr, es
MIME-Version: 1.0
To: Alex Vinokur <alexvn@connect.to>, Mailing List: CygWin <cygwin@cygwin.com>
Subject: Re: Is a function actually inlined?
References: <bm0ks2$j8i$2@sea.gmane.org>
In-Reply-To: <bm0ks2$j8i$2@sea.gmane.org>
X-Enigmail-Version: 0.76.7.0
X-Enigmail-Supports: pgp-inline, pgp-mime
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 7bit

Alex Vinokur wrote:

>====== 2. Compilation : BEGIN ======
>
>$ g++ -save-temps t.cpp
>
>====== 2. Compilation : END ========
>  
>
I think you must use smoe level of optimization to get inlines:

from "man gcc":

       -fno-inline
           Don't pay attention to the inline keyword.  Normally this 
option is
           used to keep the compiler from expanding any functions inline.
           Note that if you are not optimizing, no functions can be expanded
           inline.

       -finline-functions
           Integrate all simple functions into their callers.  The compiler
           heuristically decides which functions are simple enough to be 
worth
           integrating in this way.

           If all calls to a given function are integrated, and the function
           is declared static, then the function is normally not output as
           assembler code in its own right.

           Enabled at level -O3.

-- 
Lapo 'Raist' Luchini
lapo@lapo.it (PGP & X.509 keys available)
http://www.lapo.it (ICQ UIN: 529796)



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

