A Java virtual machine includes a just in time (JIT) Java compiler. The
JIT compiler includes at least one optimizer. Each of the at least one
optimizer includes logic for recognizing a pattern in a received Java
byte code, logic for optimizing the recognized pattern to produce
optimized native code and logic for outputting optimized native code. A
method of producing optimized native code is also provided.