[wwwdocs] Mention function reordering
Ralf Wildenhues
Ralf.Wildenhues@gmx.de
Fri Jan 7 18:26:00 GMT 2011
Hi Jan,
a couple of nits:
* Jan Hubicka wrote on Fri, Jan 07, 2011 at 07:03:16PM CET:
> --- changes.html 27 Nov 2010 10:26:28 -0000 1.73
> +++ changes.html 7 Jan 2011 17:59:35 -0000
> @@ -136,6 +136,19 @@
> Unlikely executed functions are optimized for size. Functions
> executed once are optimized for size except for the inner
> loops.</li>
> + <li>On most targets with named section support the functions used only
s/support the/support,/
> + at startup (static constructors and <code>main</code>), functions used
> + only at exit and functions detected to be cold are placed into separate
> + text segment subsections.
> + This extends <code>-freorder-functions</code> feature and is
s/extends/& the/
> + controlled by the same switch. The goal is to improve startup time of large
the startup time
> + C++ programs.
> + <p>Proper function placement require linker support.
requires
> + GNU ld 2.21.51 on ELF targets was updated to place
> + those functions together within the text section leading to better code
> + locality and faster startup times of large C++ programs. Support in gold
the gold linker
> + linker is planned.</p>
> + </li>
> </ul>
> </li>
> <li>A new switch <code>-fstack-usage</code> has been added. It makes
Cheers,
Ralf
More information about the Gcc-patches
mailing list