This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS registers symbolic naming
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Ryan Underwood <nemesis-lists at icequake dot net>
- Cc: binutils at sources dot redhat dot com
- Date: 08 Mar 2004 09:39:01 -0500
- Subject: Re: MIPS registers symbolic naming
- References: <20040308102038.GC31870@dbz.icequake.net>
Ryan Underwood <nemesis-lists@icequake.net> writes:
> I noticed when using gas to assemble a mips program, that the symbolic
> register names ($a0, $t0, $v0, etc) are not accepted, only numeric ones
> are. Does anyone know if there is a reason for this, beyond "nobody has
> implemented that yet" ? I notice an option in gcc for mips to use
> symbolic names (-rnames), but it makes a point to mention that gas will
> not assemble such a file.
This is traditional behaviour for MIPS assemblers.
Most people who want other behaviour use a header file to define the
names. For example, see newlib/libc/machine/mips/machine/regdef.h.
I wouldn't object to a -mregnames option along the lines of the PPC
one.
Ian