Re: [patch 00/2] improve .text size on gcc 4.0 and newer compilers

Daniel Jacobowitz
2006-01-05T18:44:35Z

On Thu, Jan 05, 2006 at 07:09:36PM +0100, Arjan van de Ven wrote:
>
> > There are tools already around to do this sort of thing as well -
> > "profile directed optimization" or whatever they called it. Seems to be
> > fairly commonly done with userspace, but not with the kernel. I'm not
> > sure why not ... possibly because it's not available for gcc ?
>
> gcc has this for sure
> the problem is that it expects the profile info in a special format
> that.. gets written to a file. So to do it in the kernel you need
> SomeMagic(tm), for example to use the kernel profiler but to let it
> output it somehow in a gcc compatible format.

Right - at some point I remember a discussion of nifty Eclipse plugins
to allow test runs on a custom workload and rebuild with feedback,
but it never materialized.

--
Daniel Jacobowitz
CodeSourcery