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
cpu.architecture
cpu.arm.64.assembler
kernel
layouts
system
;
M:
arm.64
%load-reference
[
swap
(LDR=)
rel-literal
]
[
\
f
type-number
MOV
]
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*
;