C-style assembly

Doug Evans dje@transmeta.com
Sat Sep 7 20:46:00 GMT 2002


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.



More information about the Cgen mailing list