tech-toolchain archive

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

Re: inline (Was: Bloat)



On Sun, Feb 08, 2009 at 01:21:20PM +0000, David Brownlee wrote:
>       Given you've been playing with it - do you know if there is
>       any way around the issue Thor commented on - functions not
>       being inlined when called from other compilation units?

In the absence of a global optimizer, there has to be an inline
definition available in the translation unit in order for inlining to
be done. So only inline functions defined as such in header files are
reasonable candidates.

We might be able to hack together some kind of global optimizer (maybe
with llvm?) but it's not entirely trivial.

(Followups to tech-toolchain.)

-- 
David A. Holland
dholland%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index