This package contains Intel X86 native code compiler helper classes.

X86 calling convention

A method must be invoked by a NEAR CALL to its native code address.

The stack must contain the parameters for the method from left to right, so the first parameters is pushed first. These parameters must be removed by the called method.

Register usage:
Register On method call After method call Must be saved by called method
EAX Reference to method being called Return value for int, float, Object, low part of return value for long and double, undefined for void. No
EBX Any Same as input Yes
ECX Any Any No
EDX Any High part of return value for long, double No
EDI Any Same as input Yes
ESI Any Same as input Yes
EBP Previous framepointer Same as input Yes