|
From: | David Chisnall |
Subject: | Re: [cfe-dev] "Blocks" runtime |
Date: | Thu, 11 Jun 2009 17:38:02 +0100 |
On 11 Jun 2009, at 17:16, David Ayers wrote:
Am Donnerstag, den 11.06.2009, 12:36 +0100 schrieb David Chisnall:Clang definitely needs more testing, but I've been using it recently to compile some of the Étoilé frameworks and they seem to work nicely. I've recently been playing with some (very preliminary so far) support for speculative inlining, so if the compiler can correctly guess the called method then we can inline it and avoid the call overhead.Inlining /method/ calls? How does that work with categories?
It still calls objc_msg_lookup (you can avoid this with the Étoilé runtime but not with the GNU one), but if the result is the expected function pointer then it uses the inline implementation instead. In some situations, the inline version will benefit a lot from constant propagation. In others you're just saving the call overhead.
David
[Prev in Thread] | Current Thread | [Next in Thread] |