[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ARM EABI port: minimum CPU choice



On Tuesday 13 June 2006 12:14, Catalin Marinas wrote:
> On Tue, 2006-06-13 at 10:41 +0100, Phil Blundell wrote:
> > On Mon, 2006-06-12 at 23:54 +0200, Martin Guy wrote:
> > > Is there any reason not to make ldm the default for armv4 and above,
> > > since it seems to win most, among the various options?
> >
> > Two reasons: because it requires the return address to be on the stack
> > (which often requires adding another instruction to get it there)
>
> But isn't LR saved anyway in functions that call other functions? 

Yes.

> Though I'm not sure what the average percentage of the leaf functions out of
> the total number of functions is.

I'd guess for most callgraphs there are a significant number of leaf functions 
that do not normally push lr.

Paul



Reply to: