tech-kern archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: inline (Was: Bloat)
On Sat, Feb 07, 2009 at 08:17:23PM +0000, David Brownlee wrote:
>
> Would there be any sense in letting gcc pick when to inline?
> Gcc has -finline-functions -finline-limit=N which will
> inline any function less than N pseudo instructions. Picking
> a small enough value of N should automatically inline all
> trivial accessors, and any other function small enough to
> benefit. (The default is 600 which is probably too high
> for the kernel).
I don't think that's correct. The functions will not be inlined when
called from other compilation units -- which, for accessor functions
for any datastructure shared by several source files, means basically
all the time.
Thor
Home |
Main Index |
Thread Index |
Old Index