This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: symbolic register names for MIPS
- To: William Lee Irwin III <wli at holomorphy dot com>
- Subject: Re: symbolic register names for MIPS
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Tue, 21 Aug 2001 23:45:04 +0200
- Cc: binutils at sources dot redhat dot com
- References: <20010813192202.B20111@holomorphy.com> <20010821141244.C32745@holomorphy.com>
William Lee Irwin III wrote:
> The patch at http://holomorphy.com/~wli/scripts/tc-mips.c.patch
> implements some changes to accept symbolic register names like the
> Algorithmics assembler, following the documentation given in
> Patterson & Hennessy's "Computer Organization & Design: The Hardware
> / Software Interface", Appendix A, section A.6, Figure A.9, page A-23.
It makes some of these names illegal, this might break compatibility
to existing source. Btw, it looks like you have choosen $t0 $t1 etc,
not t0 t1 etc. It also does not work for new ABI names, breaking such
code surely.
> This makes assembly language programming on the MIPS architecture
> somewhat easier for me. I hope it's useful for others as well.
The solution I know of is to do defines via a preprocessor.
This circumvents the problem without losing much.
Thiemo