This is the mail archive of the
cgen@sources.redhat.com
mailing list for the CGEN project.
C-style assembly
- From: Doug Evans <dje at transmeta dot com>
- To: Shehryar Humayun <shehryarhumayunkhan at yahoo dot com>
- Cc: cgen at sources dot redhat dot com
- Date: Sat, 7 Sep 2002 20:46:09 -0700 (PDT)
- Subject: C-style assembly
- References: <20020908032145.87766.qmail@web21207.mail.yahoo.com>
Shehryar Humayun writes:
> Hi,
> The DSP chip I am working on has an assembly which has
> a c-style syntax, e.g. to add two registers r1 and r2
> and put the result in r1, the syntax is
> r1 = r1 + r2
> Hence the mnemonic doesn't come first. Does any one
> know of a chip which has a c-style assembly? Can any
> one give me an idea about how I should describe my
> instructiions using RTL in the .cpu file for such a
> syntax?
No effort has been put into supporting C style assembly language.
If you want to use cgen's assembler support,
I suggest writing the .cpu using "normal" assembly syntax and
write a separate program(/library) that converts C-style to normal-style.