bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recent drawing optimizations


From: David Ayers
Subject: Re: Recent drawing optimizations
Date: Tue, 01 Apr 2003 17:33:14 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3) Gecko/20030312

Richard Frith-Macdonald wrote:

On Tuesday, April 1, 2003, at 04:14  pm, David Ayers wrote:

I just noticed that the NSThread.h declares it to be public, yet NSThread.m has an inline directive. This should probably be fixed.

I think that's ok ... declaring a function inline should not mean that you can't use it elsewhere.

Ahh, silly me!

http://gcc.gnu.org/onlinedocs/gcc-3.2.2/gcc/Inline.html#Inline

"When a function is both inline and |static|, if all calls to the function are integrated into the caller, and the function's address is never used, then the function's own assembler code is never referenced. In this case, GCC does not actually output assembler code for the function, unless you specify the option |-fkeep-inline-functions|. Some calls cannot be integrated for various reasons (in particular, calls that precede the function's definition cannot be integrated, and neither can recursive calls within the definition). If there is a nonintegrated call, then the function is compiled to assembler code as usual. The function must also be compiled as usual if the program refers to its address, because that can't be inlined."

And its not declared static.

Thanks,
Dave






reply via email to

[Prev in Thread] Current Thread [Next in Thread]