This is the mail archive of the cgen@sources.redhat.com mailing list for the CGEN project.


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

Re: Register names and dollar signs


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


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