Monthly Archives: November 2015

Scalar insns & disassembly

I’ve been slowly filling in the support for scalar instructions (all done now I think, apart from some rough edges), and started looking at why disassembling with objdump wasn’t working right (I’ve been testing the new assembler with the old disassembler, so far). I partly fixed it by using a custom hash function (that CGEN-generated code uses to look up instructions, based on the value of the first word of each instruction). The other needed part is a corresponding change to the half-implemented feature to allow CGEN to handle multi-word opcodes: that’s still half-finished.

The vector instructions will be fun — the syntax is a lot less uniform (less “assembly-like”) than CGEN supports easily, so it might need a bit of hacking. Not started that yet.