[coreboot] r983 - in coreboot-v3: device include/device

Stefan Reinauer stepan at coresystems.de
Thu Nov 6 21:21:55 CET 2008

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.

llvm will kick those functions out at link time. As does the plan9
linker, as far as I understood.

coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/
Registergericht: Amtsgericht Freiburg • HRB 7656
Geschäftsführer: Stefan Reinauer • Ust-IdNr.: DE245674866

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
URL: <http://www.coreboot.org/pipermail/coreboot/attachments/20081106/35ab8f7b/attachment.sig>

More information about the coreboot mailing list