Handbook
Glossary
stack-cleanup ( stack-size return abi -- n )
Vocabulary
cpu
.
architecture
Inputs
stack-size
an
integer
return
a c type
abi
an
abi
Outputs
n
an
integer
Word description
Calculates how many bytes of stack space the caller of the procedure being constructed need to cleanup. For modern abi's the value is almost always 0.
Examples
USING: cpu.architecture prettyprint ; 20 void stdcall stack-cleanup .
20
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
stack-cleanup
cpu
( stack-size return abi -- n )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
stack-cleanup
2drop
;
USING:
cpu.architecture
kernel
system
;
M:
x86.64
stack-cleanup
3drop
0
;