A method for interpreter optimization includes receiving multiple data
units organized according to a first endian order, reordering the data
units according to a second endian order and interpreting the reordered
data units. According to one aspect, the data units include at least one
opcode having at least one operand, each operand including at least one
data unit. According to another aspect, a class loader reorders the code
within a classfile from big-endian format to little-endian format.