IT lexicon › Programming › MIPS o32 ABI

MIPS o32 ABI

Programming På svenska → Updated: 2026-11-07

The original 32-bit MIPS calling convention, which picked up the "o" for "old" once SGI built its successors n32 and n64.

The first four arguments travel in $a0–$a3 and the result comes back in $v0. Even so, the caller must always reserve 16 bytes of stack for those four arguments, so the callee has somewhere to spill them if it needs their address — the same idea as the shadow space in the Windows x64 convention, a decade earlier. Floating-point arguments go in $f12 and $f14, and a double occupies a pair of 32-bit registers, which effectively throws away half the FPU register file.

In the 1990s SGI introduced n32 and n64 for IRIX 6, with eight argument registers and full-width floating-point registers. o32 hung on for a long time regardless, in embedded systems and in the 32-bit Linux ports for routers, because that was what all the existing binaries expected.

← Back to the lexicon