@yutongwu111140 I have a suggestion,
I think it might be better to group certain opcode IDs together, so that you would only have to do one comparison for 10 instructions, instead of 10 comparisons.
Something like:
if (op_code > cg_2_regs_lo && op_code < cg_2_regs_hi) goto cg_2_regs;