Messages in this thread | | | Date | Tue, 21 Aug 2012 17:26:13 +0300 | From | Avi Kivity <> | Subject | Re: 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
| |