stl.returnΒΆ

Returns to the calling function (gets the return-address from the top of the stack).

note: jumps to the last-call’s pop_ret_address (which this macro counts as time, but not space, complexity).
@Assumes: matched by a prior stl.call (stack non-empty).

@Assumes: matched by a prior stl.call (stack non-empty)

SignatureΒΆ

def return < hex.pointers.sp { ... }

Defined in ptrlib.fj β€” lines 70–72 (view on GitHub).

ComplexityΒΆ

  • Time: w(2@+7)      + 9@+23

  • Space: w(2.375@+34) + 5@+67

See the complexity glossary for what @, w, dw, dbit, n mean.

Requires initΒΆ

The following must be initialised before this macro is invoked:

  • the stack_init.

SourceΒΆ

Depends onΒΆ


← Previous: stl.call/2 Next: stl.get_sp β†’