> I went with a static length opcode design. Each op is 8 bytes long and > contains the opcode, the opcode type (int, num, str, pmc), a destination > register, two source registers and an int for immediate, jump or offset > values.
I'm a big fan of this approach. 8 bytes, with two for opcode, and two each for three registers is a good idea. I can't think of any operation at this level of abstraction that we would want to perform that required more than three operands. We do lose some space for ops which do not use three operands, but the simplicity of the system might make up for that. > lasm is a one to one mapping of the bytecode. My plan is to keep it that > way. Strong +1 --Andrew Whitworth _______________________________________________ http://lists.parrot.org/mailman/listinfo/parrot-dev
