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 $12-$15 are named $t4-$t7


Alexandre Oliva wrote:
> On Apr  7, 2003, Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de> wrote:
> 
> > IIRC "See MIPS Run" claims this bad idea happened, and it would also
> > break much code if t0-t3 would disappear.
> 
> Well, it could have been retained as an alias.  But the damage is
> already done.
> 
> > Note also that the assembly examples in "MIPSpro N32 Handbook" use t0.
> 
> Indeed.  And it also mentions t4..t7 do not exist in NewABI
> configurations, and introduces ta0..ta3 that alias a4..a7 or t4..t7
> depending on the ABI.  Eeek.
> 
> Anyway, we do have a very serious problem now.  GCC does map t0..t3 to
> $8..$11 regardless of the ABI, and changing this mapping now may break
> code that declares register variables using the mnemonic name.

I guess nothing in gcc uses the memnonic names. Otherwise it won't work
on IRIX. And it seems the names declared there (in mips.c) are invalid
anyway, because of the $ prefix. :-)


Thiemo


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