5.11.5 Frame Directive

The .frame framereg, frameoffset, retreg directive provides MIPS-specific DWARF debugging information in the ELF file, but is not normally used with hand-written assembly source. It is useable with PIC32M devices and describes the shape of the stack frame. The virtual frame pointer in specified by framereg and this will normally be either $fp or $sp. The frame pointer is frameoffset bytes below the canonical frame address (CFA), which is the value of the stack pointer on entry to the function. The return address is initially located in retreg until it is saved as indicated in .mask. For example
.frame $fp,8,$31