This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
RE: reordering functions to improve locality
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: "'Nick Clifton'" <nickc at redhat dot com>, "'Jan Hoogerbrugge'" <hoogerbrugge at hotmail dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: Fri, 3 Nov 2006 14:58:35 -0000
- Subject: RE: reordering functions to improve locality
On 03 November 2006 14:55, Nick Clifton wrote:
> Hi Jan,
>
>> Is there support in the binutils linker to reorder code within a module
>> to improve locality of reference in order to reduce page misses in a
>> paging based memory system?
>
> No.
The nearest thing is recent gcc versions doing hot-cold section
partitioning.
>> The (partial) call graph should be used to
>> determine the order. Is this possible at all in binutils ld? Has it been
>> done? Did anyone worked on it?
>
> Not to my knowledge no. This would be an interesting area of research
> however if someone wanted to have a go.
It might be even more interesting if combined with gprof data, mightn't it?
cheers,
DaveK
--
Can't think of a witty .sigline today....