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]

contemplating CGEN for VLIW architecture


Alan Lehotsky writes:
 > I guess I'm also wondering if I can build an assembler that looks more like an expression language,
 > viz something like
 > 
 > 
 > 	REGA = REGB + REGC,  if R7 > R8 jump FAIL, REGZ=0x100;
 > 
 > where commas separate the various micro-ops, and the expressions are from the minimal set of + - ^ | &
 > separated by white space, etc.
 > 
 > Or is gas ONLY going to work with a traditional
 > 
 > 	OPCODE	OPERANDS,....
 > 
 > style?

Maybe write a separate language that converts one to the other?
Support "if R7 > R8 jump FAIL" on top,
and pass the result to gas which recognizes the "opcode operands,..." style.


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