VM - reducing number of instructions for different types? -
i developing experimental vm, , right have separate instruction datatype operations each , every type, safe. e.g. have add instruction 8, 16, 32 , 64 bit signed , unsigned integers, float, double , long double. that's 11 instructions 1 operation. true operations support types, so, end lot of instructions , little head room.
so wondering if instructions can operate regardless of underneath type, can cut number , make room more instructions i'll in desperate need of in future, since don't want exceed byte instruction.
instead of having add
, sub
, etc.. every data type why not have them operate on "registers" , have mov
instruction datatypes 0 out/sign extend rest (if any) of register.
this of course assuming have things in vm. might want add more information question.
Comments
Post a Comment