Handbook
Glossary
%local-allot ( dst size align offset -- )
Vocabulary
cpu
.
architecture
Inputs
dst
destination register symbol
size
number of bytes to allocate
align
alignment
offset
where to allocate the data, relative to the stack register
Outputs
None
Word description
Emits machine code for stack "allocating" a chunk of memory. No memory is really allocated and instead a pointer to it is just put in the destination register.
See also
##local-allot
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
%local-allot
cpu
( dst size align offset -- )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
%local-allot
4drop
;
USING:
compiler.cfg
cpu.architecture
cpu.x86
cpu.x86.assembler
system
;
M::
x86
%local-allot
( dst size align offset -- )
dst offset
local-allot-offset
special-offset
stack@
LEA
;