From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shriramana Sharma Subject: Re: Function pointers to inline functions Date: Fri, 25 May 2007 10:11:26 +0530 Message-ID: <465668F6.6060206@gmail.com> References: <4613DBC2.8060708@gmail.com> <6a00c8d50704041133u30d98daavec529753606fc7e9@mail.gmail.com> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <6a00c8d50704041133u30d98daavec529753606fc7e9@mail.gmail.com> Sender: linux-c-programming-owner@vger.kernel.org List-Id: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: Steve Graegert Cc: linux-c-programming@vger.kernel.org Steve Graegert wrote: > Whenever you request a pointer to an inline function the compiler will > place a normal subroutine version of the inline's implementation in an > object file and return its address. Does this mean that the compiler will check the entire translation unit where the inline function is visible for pointer-request operations on the function and if any are present, the compiler will place a normal version in the object file? This would mean that the function is output separately even if -finline-functions is used. Is that true? Do I have a way of checking whether a function is output separately or not using nm? Do I just check to see whether the function name is there in the output or do I have to look for some flag on the function name? I am still not aware of the full depth of using nm. Thanks as always, Shriramana Sharma.