This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS patch to avoid lazy binding in la macros
- From: Eric Christopher <echristo at redhat dot com>
- To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Cc: Richard Sandiford <rsandifo at redhat dot com>, binutils at sources dot redhat dot com
- Date: 25 Feb 2003 18:05:21 -0800
- Subject: Re: MIPS patch to avoid lazy binding in la macros
- References: <Pine.GSO.3.96.1030225131529.14659A-100000@delta.ds2.pg.gda.pl>
> > 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/~