This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: MIPS patch to avoid lazy binding in la macros


> > This would be more for assembler programmers, right?
> 
>  Mainly, although if someone wanted to maintain old gcc, he could use
> them as well.
> 

Heh. Or they can just maintain an old binutils with it.

> > GCC really ought to split the la and jal macros up into individual
> > instructions (rewrite branch does this).  But I can see that
> > hand-written code might want to use things like 'la ..%call()'
> > as well, to cater for both the small-GOT and big-GOT casees.
> 
>  Not only that.  For an assembly language programmer it lets gas emit
> better code, e.g. accounting for different ranges of offsets.  Using
> machine instructions only you lose that ability unless you want to
> fragment code into lots of #if chunks.
> 

I can buy this.

-eric

-- 
o/~ Cry havoc... o/~


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]