MIPS patch to avoid lazy binding in la macros
Eric Christopher
echristo@redhat.com
Wed Feb 26 02:08:00 GMT 2003
> > 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/~
More information about the Binutils
mailing list