Handbook
Glossary
%c-invoke ( symbols dll gc-map -- )
CPU architecture description model
Prev:
%safepoint ( -- )
Next:
%call-gc ( gc-map -- )
Vocabulary
cpu
.
architecture
Inputs
symbols
a
byte-array
dll
a
dll
gc-map
a
gc-map
Outputs
None
Word description
Emits code for calling an FFI function.
Definition
USING:
system
;
IN:
cpu.architecture
HOOK:
%c-invoke
cpu
( symbols dll gc-map -- )
Methods
USING:
cpu.architecture
kernel
system
;
M:
arm.64
%c-invoke
3drop
;
USING:
compiler.codegen.gc-maps
compiler.codegen.relocation
compiler.constants
cpu.architecture
cpu.x86.assembler
cpu.x86.assembler.operands
kernel
system
;
M:
x86.64
%c-invoke
[
R11
0
MOV
rc-absolute-cell
rel-dlsym
R11
CALL
]
dip
gc-map-here
;