.frame Directive

Syntax

.frame frame-register frame-size return_pc-register [local_offset]

Description

The .frame directive describes a stack frame. The first register contains values for the frame-register and frame-size. The frame-size parameter is the number of bytes between the frame register and the virtual frame pointer. The second register specifies the register that contains the return address. The local_offset parameter, which is for use only by compilers, specifies the number of bytes between the virtual frame pointer and the local variables.

You must use .ent before .frame, and you can use only one .frame for each .ent. No stack traces can be done in the debugger without the .frame directive.