[lkml]   [2012]   [Aug]   [21]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: RFC: Link Time Optimization support for the kernel
On 08/21/2012 10:49 AM, Ingo Molnar wrote:
> Can the current implementation of LTO optimize to the level of
> inlining? A lot of our include file hell situation results from
> the desire to declare structures publicly so that inlined
> functions can use them directly.
> If data structures could be encapsulated/internalized to
> subsystems and only global functions are exposed to other
> subsystems [which are then LTO optimized] then our include
> file dependencies could become a *lot* simpler.

I think modules break this (if I understand what you mean correctly).
If the main kernel exposes symbol x as a global function, then lto will
not inline it into a module.

error compiling committee.c: too many arguments to function

 \ /
  Last update: 2012-08-21 17:01    [W:0.941 / U:2.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site