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]
Other format: [Raw text]

C-style assembly


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.


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