STACK FRAME FORMAT ===================== Author: Edwin Steiner Overview -------- For the sake of efficiency CACAO uses its own stack frame layout that does not comply with the usual frame layout on the native ABI. This document tries to collect the stack frame layouts used on the various architectures. i386 stack frames ----------------- >>>> sp in method (after initial sub) <<<< u4[] arguments for calling methods \__ rd->memuse slots u4[] local variable slots allocated on stack / u4[1..2] synchronized object / saved return value (only for synched methods) u8[] callee-saved float registers u4[] callee-saved integer registers >>>> sp on method entry <<<< u4 return address u4[] arguments on stack