User: Password:
|
|
Subscribe / Log in / New account

What's coming in $NEXT_KERNEL_VERSION, part 1

What's coming in $NEXT_KERNEL_VERSION, part 1

Posted May 27, 2011 22:01 UTC (Fri) by oak (guest, #2786)
In reply to: What's coming in $NEXT_KERNEL_VERSION, part 1 by nevets
Parent article: What's coming in $NEXT_KERNEL_VERSION, part 1

I think that at some point during v4.x development, gcc -Os option was changed from producing smaller code without much performance hit to something that mainly aims at smaller code. If I remember right, there was even a gcc bug filed by Mozilla devs about this as they thought it a regression...


(Log in to post comments)

What's coming in $NEXT_KERNEL_VERSION, part 1

Posted May 31, 2011 13:17 UTC (Tue) by pbonzini (subscriber, #60935) [Link]

> gcc -Os option was changed from producing smaller code without much
> performance hit to something that mainly aims at smaller code

That actually had always been the aim, but the tuning was not so good. For example, Mozilla was making some simple functions non-static that should have been static. These functions were very simple, but they were used only once and they still had to be included in the final binary. So GCC started being worried about including two copies of them and stopped inlining them. (This was fixed by tuning inliner heuristics to detect the optimization opportunities coming from the inlining of such simple functions).


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