[coreboot] r983 - in coreboot-v3: device include/device
c-d.hailfinger.devel.2006 at gmx.net
Fri Nov 7 01:10:29 CET 2008
On 06.11.2008 21:21, Stefan Reinauer wrote:
> Vincent Legoll wrote:
>> On Thu, Nov 6, 2008 at 5:16 PM, Stefan Reinauer <stepan at coresystems.de> wrote:
>>> Vincent Legoll wrote:
>>>> Isn't all that kind of things doable via function pointers and link-time dead
>>>> code elimination ? That would achieve the no ifdeffery goal, and may be
>>>> cleaner code...
>>> Link time optimization would suggest we look into compiling with LLVM
>>> instead of gcc.
>> I was believing that current linkers discarded code of unused functions.
>> Would LLVM really be needed for that to happen ? Or are you thing of
>> more involved optimizations ?
> Any non-static functions in a file will stay in the final binary, unless
> you do some trickery like -combine, but that usually requires some
> changes to the build system.
We already have CONFIG_WHOLE_PROGRAM_COMPILE in v3. I can make sure it
is available for all stages. Right now it is only used for initram.
More information about the coreboot