This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
Re: Register names and dollar signs
- To: Greg McGary <greg at mcgary dot org>
- Subject: Re: Register names and dollar signs
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Fri, 1 Dec 2000 12:32:48 -0500
- Cc: cgen at sourceware dot cygnus dot com
- References: <200012011656.JAA15032@kayak.mcgary.org>
Hi -
On Fri, Dec 01, 2000 at 09:56:38AM -0700, Greg McGary wrote:
: [...]
: I wish to define a MIPS-like assembler syntax where register names and
: numbers are prefixed with dollar signs, e.g., `$4' or `$a0'
: I thought the proper way was via (indices keyword "$" ... ) in
: define-hardware for the general registers [...]
The dollar sign is special in cgen syntax strings - perhaps that is the
problem. Could you try "%" instead, just as a test? If that works as
you expect, you could then try "\$", ie., the "quoted" dollar sign.
: When I can change the prefix value and re-cgen, the files
: don't change. Smells like a bug? [...]
Yes, but I've never used the keyword/prefix functions successfully,
always applying keyword prefixes manually to each string.
- FChE
PGP signature