|
|
Subscribe / Log in / New account

Rethinking optimization for size

Rethinking optimization for size

Posted Feb 7, 2013 8:58 UTC (Thu) by massimiliano (subscriber, #3048)
Parent article: Rethinking optimization for size

I might be wrong, but what we really need is not just a new compiler flag that says "optimize for speed knowing that code size heavily affects speed".

What would be nice to have would be profile-driven optimizations.

You compile your kernel, profile it during a "normal workload" (the definition of which is really tricky), and then, maybe, optimize functions differently.
For instance, for very hot ones you could afford loop unrolling, and for colder ones you'd keep size as small as possible.

My 2c,
_ Massi


to post comments

Rethinking optimization for size

Posted Feb 11, 2013 23:59 UTC (Mon) by nix (subscriber, #2304) [Link]

Um, yes. That's what profile-guided optimizations *are*. :)


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds