Handbook
Glossary
%load-reference ( reg obj -- )
Vocabulary
cpu
.
architecture
Inputs
reg
an
object
obj
an
object
Outputs
None
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
%load-reference
cpu
( reg obj -- )
Methods
USING:
compiler.codegen.relocation
compiler.constants
cpu.architecture
cpu.arm.64
cpu.arm.64.assembler
kernel
layouts
system
;
M:
arm.64
%load-reference
[
3
words
rot
LDRl
3
words
Br
NOP
NOP
rc-absolute-cell
rel-literal
]
[
\
f
type-number
swap
MOVwi
]
if*
;
USING:
compiler.codegen.relocation
compiler.constants
cpu.architecture
cpu.x86.assembler
kernel
layouts
system
;
M:
x86
%load-reference
[
swap
0
MOV
rc-absolute-cell
rel-literal
]
[
\
f
type-number
MOV
]
if*
;