insn semantics required?

Jean-Marc Saffroy jean-marc.saffroy@joguin.com
Mon Jan 24 14:59:00 GMT 2011


Hi Nathan,

On 01/24/2011 03:23 PM, Nathan Froyd wrote:
> I've been looking through the documentation and couldn't determine
> conclusively whether defining the semantics of an insn is required.  Is
> it?

The syntax requires that you define something, although I think "()"
will do if you don't built a simulator. Otherwise, as you noted, a
simple "(nop)" will definitely be sufficient.

>  Auto-magically defining a simulator seems less useful in this day
> and age, but an auto-generated assembler and disassembler seems quite
> useful.

It really depends if you have a platform available for testing. A
simulator (auto-generated or not) is very convenient to run the gcc test
suite for regression testing.


Cheers,
JM



More information about the Cgen mailing list