public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* symbolic register names for MIPS
       [not found] <20010813192202.B20111@holomorphy.com>
@ 2001-08-21 14:12 ` William Lee Irwin III
  2001-08-21 14:45   ` Thiemo Seufer
  0 siblings, 1 reply; 2+ messages in thread
From: William Lee Irwin III @ 2001-08-21 14:12 UTC (permalink / raw)
  To: binutils

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.

This makes assembly language programming on the MIPS architecture
somewhat easier for me. I hope it's useful for others as well.


Thanks,
Bill

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: symbolic register names for MIPS
  2001-08-21 14:12 ` symbolic register names for MIPS William Lee Irwin III
@ 2001-08-21 14:45   ` Thiemo Seufer
  0 siblings, 0 replies; 2+ messages in thread
From: Thiemo Seufer @ 2001-08-21 14:45 UTC (permalink / raw)
  To: William Lee Irwin III; +Cc: binutils

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-21 14:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20010813192202.B20111@holomorphy.com>
2001-08-21 14:12 ` symbolic register names for MIPS William Lee Irwin III
2001-08-21 14:45   ` Thiemo Seufer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).